Documentation Language: Swift

Method

sorted(using:)

Inherited from Sequence.sorted(using:).

func sorted<S, Comparator>(using comparators: S) -> [Self.Element] where S : Sequence, Comparator : SortComparator, Comparator == S.Element, Self.Element == Comparator.Compared