{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5661","repository_url":"https://api.github.com/repos/Microsoft/ChakraCore","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5661/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5661/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5661/events","html_url":"https://github.com/Microsoft/ChakraCore/issues/5661","id":356576944,"node_id":"MDU6SXNzdWUzNTY1NzY5NDQ=","number":5661,"title":"Stable sort for Array#sort.","user":{"login":"jdalton","id":4303,"node_id":"MDQ6VXNlcjQzMDM=","avatar_url":"https://avatars2.githubusercontent.com/u/4303?v=4","gravatar_id":"","url":"https://api.github.com/users/jdalton","html_url":"https://github.com/jdalton","followers_url":"https://api.github.com/users/jdalton/followers","following_url":"https://api.github.com/users/jdalton/following{/other_user}","gists_url":"https://api.github.com/users/jdalton/gists{/gist_id}","starred_url":"https://api.github.com/users/jdalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdalton/subscriptions","organizations_url":"https://api.github.com/users/jdalton/orgs","repos_url":"https://api.github.com/users/jdalton/repos","events_url":"https://api.github.com/users/jdalton/events{/privacy}","received_events_url":"https://api.github.com/users/jdalton/received_events","type":"User","site_admin":false},"labels":[{"id":307793007,"node_id":"MDU6TGFiZWwzMDc3OTMwMDc=","url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/Discussion","name":"Discussion","color":"c7def8","default":false},{"id":307793018,"node_id":"MDU6TGFiZWwzMDc3OTMwMTg=","url":"https://api.github.com/repos/Microsoft/ChakraCore/labels/Suggestion","name":"Suggestion","color":"fad8c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-09-03T18:15:12Z","updated_at":"2018-11-01T19:05:48Z","closed_at":"2018-11-01T19:05:47Z","author_association":"MEMBER","body":"Now that V8 has patched their `Array#sort` to be stable _(see [here](https://twitter.com/mathias/status/1036626116654637057))_ it appears that Chakra may be one of the last _(or the last)_ of the browser JS engines _(JS Core, SpiderMonkey, V8, etc.)_ to [perform a **non**-stable sort](https://twitter.com/mathias/status/1036629033583345670) _(see [demo](https://mathiasbynens.be/demo/sort-stability-512))_.\r\n\r\nhttps://github.com/Microsoft/ChakraCore/blob/0f40413d2e29863edf5f82de14fac41843deb79f/lib/Runtime/Library/JavascriptArray.cpp#L6640-L6675\r\n\r\nWhile not a spec violation, if all engines perform a stable sort we can work towards standardizing it in the TC39."}}
{"actor":{"display_login":"chakrabot"}}