2.1.31 [ECMA-262/5] Section 184.108.40.206, String.prototype.localeCompare (that)
The specification states:
The actual return values are implementation-defined to permit implementers to encode additional information in the value, but the function is required to define a total ordering on all Strings and to return 0 when comparing Strings that are considered canonically equivalent by the Unicode standard.
IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)
The returned value is determined as follows:
Call the Microsoft Windows CompareString system function, passing
that, and the current locale information as arguments.
Pass the value
0as the dwCmpFlags argument.
Return result (