Instance Property

sortDescriptors

The sort descriptors of the fetch request.

Declaration

var sortDescriptors: [NSSortDescriptor]? { get set }

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software