Compares strings as sorted by the Finder.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The string to compare with the receiver.
The result of the comparison.
This method should be used whenever file names or other strings are presented in lists and tables where Finder-like sorting is appropriate. The exact sorting behavior of this method is different under different locales and may be changed in future releases. This method uses the current locale.
Identifying and Comparing Strings
Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver.
Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver.
Returns a Boolean value that indicates whether a given string is equal to the receiver using a literal Unicode-based comparison.
An unsigned integer that can be used as a hash table address.
These values represent the options available to many of the string classes’ search and comparison methods.