---
title: "sort(using:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutablearray/sort(using:)-4eh07"
---

# sort(using:)

Sorts the receiver using a given array of sort descriptors.

## Declaration

```swift
func sort(using sortDescriptors: [NSSortDescriptor])
```

## Parameters

- `sortDescriptors`: An array containing the NSSortDescriptor objects to use to sort the receiving array’s contents.

## Discussion

Discussion See NSSortDescriptor for additional information.

## See Also

### Related Documentation

- [sortedArray(using:)](foundation/nsarray/sortedarray(using:)-82wi1.md)

### Rearranging Content

- [exchangeObject(at:withObjectAt:)](foundation/nsmutablearray/exchangeobject(at:withobjectat:).md)
- [sort(comparator:)](foundation/nsmutablearray/sort(comparator:).md)
- [sort(options:usingComparator:)](foundation/nsmutablearray/sort(options:usingcomparator:).md)
- [sort(_:context:)](foundation/nsmutablearray/sort(_:context:).md)
- [sort(using:)](foundation/nsmutablearray/sort(using:)-537vs.md)
