Skip to content

Comment on Sorting Algorithm Cheat Sheetparent

Comments

You can pry my stable sort algorithms out of my cold, dead hands.

Heh, I think stable sorts are great. However, you don't always need one, and you do pay a little bit for it.

Add the factors to the sort key? Every sort is stable if you have some vague ideas about what to sort on.

What?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.