localeCompare()
97.39
The `localeCompare()` method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.
The `localeCompare()` method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.