Array.sort() wrong order
Reported by
yurk...@gmail.com,
Aug 15 2016
|
|||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Steps to reproduce the problem:
[9168, 28872, 11136, 17413, 17052, 28900, 31990, 17160, 20388, 31424, 41660].sort(function () {
return 0;
});
What is the expected behavior?
What went wrong?
Array order changed.
Did this work before? N/A
Chrome version: 52.0.2743.116 Channel: stable
OS Version: 6.3
Flash Version: Shockwave Flash 22.0 r0
works in FF, IE
,
Aug 16 2016
Able to reproduce the issue on Windows-10, Ubuntu 14.04 and Mac OS 10.11.6 using chrome latest stable M52-52.0.2743.116. Observed the array order is getting changed by following steps provided in the original comment. This is a non-regression issue seen from past M35-35.0.1849.0 version, Hence marking it as untriaged. Thanks!
,
Aug 18 2016
sort does not do a stable sort. This is not required as per spec. |
|||
►
Sign in to add a comment |
|||
Comment 1 by cbiesin...@chromium.org
, Aug 15 2016