sortDescriptors
An array that specifies the order of the results that the query returns.
Declaration
var sortDescriptors: [SortDescriptor<Sample>]Discussion
The system applies the sort descriptors in order. The later descriptors sort any items that the earlier sort descriptors considered equal. If you don’t need the results in a specific order, pass an empty array.