---
title: Reversing and sorting functions
framework: accelerate
role: collectionGroup
role_heading: API Collection
path: accelerate/reversing-and-sorting-functions
---

# Reversing and sorting functions

Perform in-place reverse and sort operations on a vector.

## Topics

### Vector reversing functions

- [reverse(_:)](accelerate/vdsp/reverse(_:)-38ptd.md)
- [reverse(_:)](accelerate/vdsp/reverse(_:)-3aq38.md)

### Vector sorting functions

- [sort(_:sortOrder:)](accelerate/vdsp/sort(_:sortorder:)-wx0w.md)
- [sort(_:sortOrder:)](accelerate/vdsp/sort(_:sortorder:)-418g0.md)
- [vDSP.SortOrder](accelerate/vdsp/sortorder.md)

## See Also

### Vector operations

- [Compression and gathering functions](accelerate/compression-and-gathering-functions.md)
- [Copying, element swapping, and merging functions](accelerate/copying-element-swapping-and-merging-functions.md)
