Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.
Fix bug in bucketSort so that a comparison function is now provided to the sort function
The [built-in JavaScript sort method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) will perform a lexicographical (aka alphabetical) order by converting the elements of the array to strings. This can yield unexpected results when sorting numbers. A comparison function can be passed into the sort method to indicate how array elements should be compared.
C
Charlie Moore committed
877356fbab8c274ff6b2bd8a770d4fa7549105ae
Parent: 2691756