Re:The Curious Case of JavaScript’s `sort`
by xlm1717 on Wednesday April 13, 2016 @11:09AM
(#11488800)
It can easily be fixed by passing a sorting function...
[ Parent
| on HN ]
Re:The Curious Case of JavaScript’s `sort`
by CJefferson on Wednesday April 13, 2016 @11:16AM
(#11488865)
Well, but then I have to write a comparison function for two arrays of integers. It's not that hard to write, but it took me long enough that I wished the language had it built in (should probably look for it in npm.. if there is left-bad, there must be array-order!)