sort(comparator:)
Sorts the receiver in ascending order using the comparison method specified by a given Comparator block.
Declaration
func sort(comparator cmptr: (Any, Any) -> ComparisonResult)Parameters
- cmptr:
A comparator block.
Sorts the receiver in ascending order using the comparison method specified by a given Comparator block.
func sort(comparator cmptr: (Any, Any) -> ComparisonResult)A comparator block.