Hacker News new | ask | show | jobs
by eru 669 days ago
For what it's worth, Haskell's built-in sort does this, and I think Python, too. (But I'm not as confident about Python. My memory is a bit hazy.)