Contents

forcedOrdering

Comparisons are forced to return either NSOrderedAscending or NSOrderedDescending if the strings are equivalent but not strictly equal.

Declaration

static var forcedOrdering: NSString.CompareOptions { get }

Discussion

This option ensures reliable, reproducible results when sorting. For example, “aaa” is greater than “AAA” if caseInsensitive is specified.

See Also

Constants