---
title: sortDescriptors
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/fetchedresults/sortdescriptors
---

# sortDescriptors

The request’s sort descriptors, accessed as value types.

## Declaration

```swift
@MainActor @preconcurrency var sortDescriptors: [SortDescriptor<Result>] { get nonmutating set }
```

## Discussion

Discussion Set this value to cause the associated FetchRequest to execute a fetch with a new collection of SortDescriptor instances. The order of entities stored in the results collection may change as a result. If you want to use NSSortDescriptor instances, set nsSortDescriptors instead.

## See Also

### Configuring the associated fetch request

- [nsPredicate](swiftui/fetchedresults/nspredicate.md)
- [nsSortDescriptors](swiftui/fetchedresults/nssortdescriptors.md)
