insertion-sort

Insertion sort

npm install insertion-sort
2 downloads in the last week
4 downloads in the last month

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
npm loves you