node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

insertion-sort

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