
It provides a special method to compare strings in different languages, following their rules. Luckily, modern browsers support the internationalization standard ECMA-402. So, the browser needs to know the language to compare. The “right” algorithm to do string comparisons is more complex than it may seem, because alphabets are different for different languages. Here, its code is greater than anything from a to z.


The greater code means that the character is greater.

The characters are compared by their numeric code.
