Hacker News new | ask | show | jobs
by coding_lobster 1106 days ago
What's the use case for this?
1 comments

Lots of mathematical algorithms sort lists lexicographically. It comes up in graphs and lots of other combinatorics problems. Often you want a total order on 2D coordinates, an this ordering is (usually) the simplest and best.