JS Sorting Algorithms Every Developer Should Know (opens in new tab)
You call .sort() every day without thinking about it. But the sorting algorithm your language's standard library actually uses is a carefully engineered hybrid - and understanding what it's doing (and why) makes you a better engineer. Not just for interviews. For writing better code, debugging weird performance cliffs, and knowing when to reach for something different. This post covers the eight classic sorting algorithms - the ones that appear in every CS curriculum and show up in every whit...
Read the original article