Comparing Bubble Sort to JS Array.sort Method
.sort() method on an Array.
I have stored an array of 10,000 unique numbers in random order, then created three Promise-based functions for sorting this array in ascending order.
After you click on the button, wait for 3 or 4 seconds and you will see the results on the screen. You can also open the console in your dev tools to see more details for each function.
Check it out here: https://wesleylhandy.github.io/bubble-sort/