Press space to start sorting the numbers. Press C to toggle custom mode on/off, and press D to revert to default settings. To get a new random set, just hit the green flag again. If you simply want to rearrange the numbers, press R. The program will attempt to sort the list until the numbers are in ascending order. *Extra: Press S to hear sounds whenever the sort swaps a pair of numbers! Inspired by Sound of Sorting.
What is bubble sort? Bubble sort is a basic sorting algorithm that has these rules: 1. Compare a number with the next number in the list. If they are not in order, swap them. 2. Move to the next number and go back to step 1. If you reach the end of the list, return back to the top. Repeat until fully sorted. It is not extremely efficient, but it does the work in a reasonable amount of time.