Issue 90: V8 doesn't stable sort
http://code.google.com/p/v8/issues/detail?id=90

Comment #4 by nicolas.alvarez:
Leave it non-stable.

Some people in the Mozilla bugtracker wanted it stable so they could do  
two-pass
sorting to sort by two columns. Doing two-column sorting is possible  
without two
passes. Just write a comparison function like:
if (a.one == b.one) {
     return a.two < b.two ? -1 : 1;
} else {
     return a.one < b.one ? -1 : 1;
}



-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to