npm install quick-sort_Stability: 1 - Experimental_
Quick sort.
``javascript``
var quickSort = require('quick-sort');
...
var ascending = quickSort(array); // sort ascending
var descending = quickSort(array, undefined, undefined, false); // sort descending
_yes, the descending case is sort of crappy usage, I doubt anyone will use this code though :)_