localeCompare()
- OTHERThe 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
- 5.5: Support unknown
- 6 - 10: Partial support
- 11: Supported
Edge
- 12 - 100: Supported
- 101: Supported
Firefox
- 2 - 28: Partial support
- 29 - 99: Supported
- 100: Supported
- 101 - 102: Supported
Chrome
- 4 - 23: Partial support
- 24 - 100: Supported
- 101: Supported
- 102 - 104: Supported
Safari
- 3.1 - 9.1: Partial support
- 10 - 15.3: Supported
- 15.4: Supported
- TP: Supported
Opera
- 9 - 12: Support unknown
- 12.1: Partial support
- 15 - 85: Supported
- 86: Supported
- 87: Supported
Safari on iOS
- 3.2 - 9.3: Partial support
- 10 - 15.3: Supported
- 15.4: Supported
Opera Mini
- all: Partial support
Android Browser
- 2.1 - 4.3: Partial support
- 4.4 - 4.4.4: Supported
- 101: Supported
Opera Mobile
- 10 - 12: Support unknown
- 12.1: Partial support
- 64: Supported
Chrome for Android
- 101: Supported
Firefox for Android
- 100: Supported
UC Browser for Android
- 12.12: Supported
Samsung Internet
- 4: Partial support
- 5 - 15.0: Supported
- 16.0: Supported
QQ Browser
- 10.4: Supported
Baidu Browser
- 7.12: Supported
KaiOS Browser
- 2.5: Partial support
- Resources:
- MDN article