sort(options:usingComparator:)
Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block.
Declaration
func sort(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult)Parameters
- opts:
A bitmask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably).
- cmptr:
A comparator block.