Insertion sort
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts
.gitignore
LICENSE
README.md
index.js
package.json
test.js

README.md

insertion-sort

Stability: 1 - Experimental

Insertion sort.

Usage

var insertionSort = require('insertion-sort');
...
var ascending  = insertionSort(array);        // sort ascending
var descending = insertionSort(array, false); // sort descending