sorted(by:)

Inherited from Sequence.sorted(by:).

Declaration

func sorted(by areInIncreasingOrder: (Self.Element, Self.Element) throws -> Bool) rethrows -> [Self.Element]