Sleep Sort implemented on the Array Prototype.
npm install sleepy-sortIt will mutate the array.
let timeToSort = [5,4,3,2,1].sleepSort();
`The method by default sorts in ascending order, set the first parameter to
false to sort in descending order.The method accepts a callback which is passed the result on sorting completion.
`
let timeToSort = [5,4,3,2,1].sleepSort(true, function(result){
console.log('Sorted Array:' result)
});console.log('time sleepysort will take (ms):', timeToSort);
``