Comment #24 on issue 459 by [email protected]: localeCompare implementation differs from other browsers
http://code.google.com/p/v8/issues/detail?id=459

"The Spec" (ECMA - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf) states:

"The result is intended to order String values in the sort order specified by the system default locale, and will be negative, zero, or positive, depending on whether S comes before That in the sort order, the
Strings are equal, or S comes after That in the sort order, respectively."

The result must be -1, 0 or 1, just as other browsers have implemented it. Please fix it. This should be a bug not a feature request.



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to