5 points · by dsagal · 3y ago · 2 comments
>>> sorted([10, 2, math.nan]) [2, 10, nan] >>> sorted([10, math.nan, 2]) [10, nan, 2]
Why sorting is harder than it seems | Grist
Insights from Grist's CEO, Dmitry Sagalovskiy, on sorting arrays. Why they still surprise him & how the bugs bring frustration and delight.
Grist