node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

heap-sort

heap-sort

Stability: 1 - Experimental

Heap sort.

Usage

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