Instance Property

sortDescriptors

The sort descriptors of the fetch request.

Declaration

@property(nonatomic, strong) NSArray<NSSortDescriptor *> *sortDescriptors;

Discussion

The sort descriptors specify how the objects returned when the NSFetchRequest is issued should be ordered—for example, by last name and then by first name. The sort descriptors are applied in the order in which they appear in the sortDescriptors array (serially in lowest-array-index-first order).

A value of nil is treated as no sort descriptors.