The sort() method of {{jsxref("Array")}} instances sorts the elements of an array in place and returns the reference to the same array, now sorted. The default sort order is ascending, built upon ...
This is an exercise to solve the classic problem of sorting the elements of an array. The added twist is that this solution uses asynchronous functions to sort the array from both directions ...