News for hackers. Stuff that matters.
Re:Why sorting is harder than it seems by pestatije on Friday February 10, 2023 @10:10AM (#34740617)
The problem at hand is not sorting but type safety...brought to you by javascript
Re:Why sorting is harder than it seems by dsagal on Friday February 10, 2023 @12:33PM (#34742863)
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]