> `arr.indexOf(arguments[0]) - arr.indexOf(arguments[1])` This will work only if `arr` is a copy of an array which you are trying to sort, because the algorithm may swap those elements and so reposition them relative to other elements ...
Stable sort is useful sometimes, but it is possible to implement it in js. _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

