Type Property

numeric

Numbers within strings are compared using numeric value, that is, Name2.txt < Name7.txt < Name25.txt.

Declaration

static var numeric: NSString.CompareOptions { get }

Discussion

Numeric comparison only applies to the numerals in the string, not other characters that would have meaning in a numeric representation such as a negative sign, a comma, or a decimal point.

This option only applies to compare methods, not find.