New issue
Advanced search Search tips

Issue 637912 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

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
 
Components: -Blink Blink>JavaScript
I don't believe that JS guarantees a stable sort, but reassigning this to the JS team
Labels: M-54 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
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!
Cc: adamk@chromium.org
Status: WontFix (was: Untriaged)
sort does not do a stable sort. This is not required as per spec.

Sign in to add a comment