Dark Hacker News
new
|
best
|
ask
|
show
|
jobs
Why sorting is harder than it seems
(getgrist.com)
5 points
by
dsagal
3 years ago
| 2 comments
Why sorting is harder than it seems | Dark Hacker News
pestatije
3 years ago
|
next
[−]
The problem at hand is not sorting but type safety...brought to you by javascript
dsagal
3 years ago
|
parent
|
next
[−]
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]