sleep-sort

Implementation of the sleep-sort algorithm.

Usage no npm install needed!

<script type="module">
  import sleepSort from 'https://cdn.skypack.dev/sleep-sort';
</script>

README

Sleep Sort

sleep-sort works by creating a task for every number to be sorted. The task will "sleep" n number of milliseconds and then push the number onto an array. When all tasks are done, the array is returned sorted.