sorted(by:)

public func sorted<S: Sequence>(by sortDescriptors: S) -> Results<Element>
        where S.Iterator.Element == SortDescriptor

Returns a Results containing the objects in the list, but sorted.

Warning

Lists may only be sorted by properties of boolean, Date, NSDate, single and double-precision floating point, integer, and string types.