archives

« Bugzilla Issues Index

#4330 — 22.1.3.24.1 SortCompare doesn't define the sort order of string values


It says:
9. If xString < yString, return -1.
10. If xString > yString, return 1.

but what does < mean in this context

It should use the default relational comparison algorithm

Apparently not all browser implementations use that comparison semantics

(thanks to Tobie Langel for reporting via twitter)


For the record, the discrepancy appeared between:

* node.js version 0.12.0 (running V8 3.28.73) on Ubuntu 14.04.2 LTS

and:

* io.js version 1.2.0 (running V8 4.1.0.14) on Mac OS 10.9.5


Fixed in ES2016 Draft (31593103e)