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.
[ Parent
| on HN ]