A list of sort descriptors, specifying an order for the fetched objects.
- iOS 8+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10+
Construct sort descriptors with the properties of the objects that you want to fetch, listed in Table 1. For example, the following code sorts by creation date to find the oldest asset in the photo library.
Photos does not support sort descriptors created with the