Summary: | Array.prototype.sort is not quite stable | ||
---|---|---|---|
Product: | WebKit | Reporter: | Richard Gibson <richard.gibson> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | getify |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 110007 |
Description
Richard Gibson
2013-02-24 17:16:53 PST
For reference, discussion thread for Chrome about this: http://code.google.com/p/v8/issues/detail?id=90 In particular, some people on the thread balk at stabilizing the sort because the spec for JS doesn't mandate stable sort (apparently wanting to give implementers more flexibility for performance sake). Argh, forgive me for the misplaced report. WebKit handles this just fine; V8 is the inconsistent engine here. Moving discussion to their tracker. |