npm install th-sortSimple non-blocking quicksort algorythm in other thread.
sandbox where you can sort one array in main thread and in separated thread.
``js
import thsort from 'th-sort';
(async () => {
// array is defined somewhere earlier
const sorted = await tsort(array);
})()
// Or
tsort(array)
.then((sorted) => {
})
`
`bash``
npm i --save th-sort