User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:184.108.40.206) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5 Build Identifier: Mozilla Fennec 1.1a2pre Method Array.sort doesn't work using strings as keys, with and without a function given in parameter for the method sort Reproducible: Always Actual Results: The Array is not sorted, (function return immediately?) Used when programming a Fennec extension
Status: UNCONFIRMED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → INCOMPLETE
var array = new Array(); array["feel"] = "lles"; array["abim"] = "io"; array["meee"] = "amour"; alert(array.sort()); I use string as key in state of integers. In your test, you didn't.
Resolution: INCOMPLETE → FIXED
In that case, invalid. The spec clearly defines sort() to work only on the properties of the array whose names are integers.
Resolution: FIXED → INVALID
You need to log in before you can comment on or make changes to this bug.