Comment #25 on issue 459 by [email protected]: localeCompare implementation differs from other browsers
http://code.google.com/p/v8/issues/detail?id=459
Reading a few paragraphs further in the spec: "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." So there is *no* requirement for -1 and 1, and any JavaScript code depending on this is simply wrong.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
