Sort stability: Difference between revisions
→{{header|JavaScript}}
Line 409:
The ECMAScript 2019 standard defines Array.sort() as stable.
At the time of writing this is already implemented in in Node.js and in the JS interpreters of all major browsers, including Microsoft Edge, but not
<lang javascript>ary = [["UK", "London"], ["US", "New York"], ["US", "Birmingham"], ["UK", "Birmingham"]]
|