Releases: gwtw/js-sorting
Releases · gwtw/js-sorting
Version 2.0.0
License changed to MIT
Improvements
- (Breaking change!) Custom compare functions now need to be set on the objects and cannot be passed in to the
sort
function 433ec34 - Builds are now put in
dist/
, use this instead ofsrc/
83f8a5d - Strings can now be sorted using the default compare function f02b49d
- Removed some redundant code 3b5c64b
swap
andcompare
functions are exposed for most algorithms and can be intercepted to listen to sort internals e5b636a
Algorithms
Version 1.2.0
Improvements
- Added ability to provide custom compare functions for all comparison sorts
Version 1.1.0
Algorithms
- Add counting sort function
sort(array, minValue, maxValue)
Improvements
- Minor optimisation to counting-sort
Version 1.0.0
Algorithms
- Bubble sort
- Counting sort
- Heapsort
- Insertion sort
- Merge sort
- Merge sort (bottom-up)
- Quicksort
- Selection-sort