[Webkit-unassigned] [Bug 95309] Sorting array with objects using a custom function returns strange result if array length > 10
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 29 10:05:16 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=95309
Alexey Proskuryakov <ap at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ap at webkit.org,
| |barraclough at apple.com,
| |oliver at apple.com
--- Comment #1 from Alexey Proskuryakov <ap at webkit.org> 2012-08-29 10:05:19 PST ---
> return b.p < a.p;
This is not a correct comparison function - it should return -1, 1, or 0 when elements are equal.
I don't know if we want to track a difference with Firefox like this one as a bug. The spec explicitly states that behavior with inconsistent comparison functions is implementation defined.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list