sorting-algos
implementation of various sorting algorithms in javascript
Usage
Example
var bubbleSort = var selectionSort = var insertionSort = var heapSort = var mergeSort = var quickSort = var items = 35 13 44 53 1 34 51 15 88 42 console console console console console console
API
var {sorter} = require('sorting-algos')
loads sorting algorithm where sorter can be bubbleSort, selectionSort, insertionSort, heapSort, mergeSort or quickSort
sorter(items)
sorts items in ascending order and returns it
License
MIT