array.sort() - is now a stable sort
Links
MDN chapter on "Sort stability".
Blog post the stable sort, on the v8 blog.
Required Knowledge
- `array.sort()` basics (Array API)
- `array.sort()` can take a compare function (Array API)
Related Katas
Array API
array.sort()basicsarray.sort()can take a compare functionarray.shift()(as introduced in ES3)array.push()(as introduced in ES3)Array.from()Array.of()array.fill()array.find()array.findIndex()array.entries()array.keys()array.values()array.includes()array.toReversed()
Difficulty Level
INTERMEDIATE