Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
coding_lobster
· 3y ago · 0 comments
What's the use case for this?
Comments
[–]
CJefferson
3y ago
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.