Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order. The pass-through of the list is repeated until the list is sorted. The algorithm, which is a comparison sort, is named for the way smaller or larger elements "bubble" to the top of the list.


bubblesort_window 20 MB
bubblesort_mac 32 MB


Log in with itch.io to leave a comment.

That's so cool, I loved it! And the 'handsome and genius' bit really got me haha

somehow.. it took the algorithm for 70 objects 20 seconds and for 30 objects, 32 seconds :D but still cool thing to play with so smn can understand the algorithmic behind the bubble sort better.

btw, u handsome genius, i came through the brackeys game jam, congrats !