Status: New
Owner: ----
New issue 324 by msharko: Javascript array sort issue
http://code.google.com/p/v8/issues/detail?id=324
Javascript array sorting with a custom function swaps items when the
custom function returns 0. In ALL other browsers it works fine.
Run the attached file. It will display 4 alert windows. The expected
result is:
The first time:
Element Index 0: 1
Element Index 1: 2
Element Index 2: 3 25
All other times:
Element Index 0: 3 25
Element Index 1: 1
Element Index 2: 2
Chrome swaps elements with ID=1 & 2 on every sort.
Attachments:
1.htm 2.9 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---