---
title: sortDescriptors
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phfetchoptions/sortdescriptors
---

# sortDescriptors

A list of sort descriptors, specifying an order for the fetched objects.

## Declaration

```swift
var sortDescriptors: [NSSortDescriptor]? { get set }
```

## Discussion

Discussion Construct sort descriptors with the properties of the objects that you want to fetch, listed in the PHFetchOptions table. For example, the following code sorts by creation date to find the oldest asset in the photo library.

## See Also

### Sorting and Filtering Fetch Results

- [predicate](photos/phfetchoptions/predicate.md)
