News for hackers. Stuff that matters.
Re:Blessed Are the JavaScript Developers by clktmr on Monday August 31, 2020 @01:45PM (#24333981)
Well, what would be the expected behavior of sorting an untyped array?
Re:Blessed Are the JavaScript Developers by jlokier on Monday August 31, 2020 @02:07PM (#24334199)
Using whatever the built-in '<' operator does would be more natural than converting to strings just for sort().
Re:Blessed Are the JavaScript Developers by clktmr on Monday August 31, 2020 @02:31PM (#24334488)
I bet not!

  1 > {} // false
  1 < {} // false
So the result of sorting will be random.

People are fast to complain..