News for hackers. Stuff that matters.
Re:The Curious Case of JavaScript’s `sort` by meesles on Wednesday April 13, 2016 @11:15AM (#11488857)
Sounds like your solution would have been to properly read documentation of critical sectors of your code. Assuming that just calling `.sort()` on your arbitrary data would give you exactly what you want was a mistake. Not testing this code was also a mistake, because any combination of different length integers would have shown you this problem very early on, saving you some embarrassment and loss of user trust.
Re:The Curious Case of JavaScript’s `sort` by eximius on Wednesday April 13, 2016 @11:54AM (#11489275)
I would definitely expect calling `sort` on plain old integers to work exactly how I want.

That said, they probably should have read the documentation as I doubt that was the only use case.

Re:The Curious Case of JavaScript’s `sort` by gpvos on Wednesday April 13, 2016 @03:25PM (#11491373)
It's hard to know in advance all parts of your code that will be critical.