Why sorting is harder than it seems
getgrist.com
Why sorting is harder than it seems
1–3 of 3 posts
Re: Why sorting is harder than it seems
#2The problem at hand is not sorting but type safety...brought to you by javascript
Re: Why sorting is harder than it seems
#3The problem at hand is not sorting but type safety...brought to you by javascript
It's not quite type safety, it's all about order, and it's definitely not specific to Javascript. Here's Python3:
>>> sorted([10, 2, math.nan])
[2, 10, nan]
>>> sorted([10, math.nan, 2])
[10, nan, 2]