The localeCompare method returns a number indicating whether str1 comes before, after or is the same as str2 in sort order.
Click the button to compare the two strings in the current locale.