localeCompare()External Link

Baseline status unknown

This feature is not covered by web-features yet, so its Baseline status is unknown.

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.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 97.57% of all users can use this feature, 97.56% fully supported, 0.01% partially supported
✓Supported
✗Not supported
Partial support