Skip to content

Releases: gwtw/js-sorting

Version 2.0.0

24 Jul 13:30
Compare
Choose a tag to compare

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 of src/ 83f8a5d
  • Strings can now be sorted using the default compare function f02b49d
  • Removed some redundant code 3b5c64b
  • swap and compare functions are exposed for most algorithms and can be intercepted to listen to sort internals e5b636a

Algorithms

Version 1.2.0

23 Jun 05:42
Compare
Choose a tag to compare

Improvements

  • Added ability to provide custom compare functions for all comparison sorts

Version 1.1.0

23 Jun 05:40
Compare
Choose a tag to compare

Algorithms

  • Add counting sort function sort(array, minValue, maxValue)

Improvements

  • Minor optimisation to counting-sort

Version 1.0.0

23 Jun 05:37
Compare
Choose a tag to compare

Algorithms

  • Bubble sort
  • Counting sort
  • Heapsort
  • Insertion sort
  • Merge sort
  • Merge sort (bottom-up)
  • Quicksort
  • Selection-sort