Return Value 戻り値
an array of the elements sorted using comparator
.
Availability 有効性
Technology
func sorted<Comparator>(using comparator: Comparator) -> [Self.Element] where Comparator : SortComparator
, Self.Element == Comparator.Compared
an array of the elements sorted using comparator
.
comparator
the comparator to use in ordering elements