Instance Method

sort(comparator:)

Sorts the mutable ordered set using the comparison method specified by the comparator block.

Declaration

func sort(comparator cmptr: (Any, Any) -> ComparisonResult)

Parameters

cmptr

A comparator block.

See Also

Sorting Entries

func sort(using: [NSSortDescriptor])

Sorts the receiving ordered set using a given array of sort descriptors.

func sort(options: NSSortOptions, usingComparator: (Any, Any) -> ComparisonResult)

Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block.

func sortRange(NSRange, options: NSSortOptions, usingComparator: (Any, Any) -> ComparisonResult)

Sorts the specified range of the mutable ordered set using the specified options and the comparison method specified by a given comparator block.