Compares JS Array.sort() method with Bubble Sort Algorithm and it's optimizations.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Comparing Bubble Sort to JS Array.sort Method

This page gives you a simple comparison of the Bubble Sort algorithm with the built-in Javascript .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: