TLDR · QUICK LINKS

WHY SORTING IS HARDER THAN IT SEEMS

mill.plainopen.com12 min read

Summary from the TLDR newsletter

Sorting in JavaScript requires a suitable comparator - mistakes virtually guarantee that some arrays will sort incorrectly.