« Bugzilla Issues Index
#4330 — 22.1.3.24.1 SortCompare doesn't define the sort order of string values
- bug_id:
4330
- creation_ts:
2015-04-21 07:48:00 -0700
- short_desc:
22.1.3.24.1 SortCompare doesn't define the sort order of string values
- delta_ts:
2016-02-04 16:23:42 -0800
- product:
Draft for 7th Edition
- component:
New feature suggestons
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Allen Wirfs-Brock
- assigned_to:
Allen Wirfs-Brock
- cc:
["brterlso", "tobie.langel"]
- commentid:
14313
- comment_count:
0
- who:
Allen Wirfs-Brock
- bug_when:
2015-04-21 07:48:11 -0700
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)
- commentid:
14314
- comment_count:
1
- who:
Tobie Langel
- bug_when:
2015-04-22 00:21:34 -0700
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
- commentid:
14915
- comment_count:
2
- who:
Brian Terlson
- bug_when:
2016-02-04 16:23:42 -0800
Fixed in ES2016 Draft (31593103e)