The localeCompare method compares two strings in the browser's locale.
System.Int32 localeCompare(System.String compareString);
compareString
String to compare with.
Returns -1 if the reference string is sorted before the compareString, 0 if the two string are equals. And 1 if the reference string is sorted after the compareString.
Member of string.