Array.sort Sorting Stability in Different Browsers

Posted by Boushley on Stack Overflow See other posts from Stack Overflow or by Boushley
Published on 2010-06-11T21:10:37Z Indexed on 2010/06/11 21:12 UTC
Read the original article Hit count: 293

What is the stability of Array.sort in different browsers. I know that the ECMA Script specification does not specify which algorithm to use, nor does it specify whether the sort should be stable.

I've found this information on for Firefox https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array/sort which specifies that firefox uses a stable sort.

Does anyone know about IE 6/7/8, Chrome, Safari?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about sorting