Compare Revisions

String.prototype.localeCompare()

Change Revisions

Revision 237316:

Revision 237316 by LouisLazaris on

Revision 237831:

Revision 237831 by LouisLazaris on

Title:
localeCompare
localeCompare
Slug:
JavaScript/Reference/Global_Objects/String/localeCompare
JavaScript/Reference/Global_Objects/String/localeCompare
Tags:
"String Methods"
"String Methods"
Content:

Revision 237316
Revision 237831
tt72    <p>
73      Note that the results shown in the code above occur when us
 >ing any browser except Chrome, which instead returns "-2", "2", a
 >nd "0", respectively. This is because the values are implementati
 >on-specific. That is, the specification requires only that the be
 >fore and after values are negative and positive.
74    </p>

Back to History