Merge sort

npm install merge-sort
2 downloads in the last week
8 downloads in the last month


Stability: 1 - Experimental

Merge sort.


var mergeSort = require('merge-sort');
var ascending  = mergeSort(array);                              // sort ascending
var descending = mergeSort(array, undefined, undefined, false); // sort descending

yes, the descending case is sort of crappy usage, I doubt anyone will use this code though :)

npm loves you