sortDescriptors
A list of sort descriptors, specifying an order for the fetched objects.
Declaration
var sortDescriptors: [NSSortDescriptor]? { get set }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.