Interactive Bubble Sort
Unsorted
Comparing
Sorted
How Bubble Sort Works
1. Compare adjacent elements in the array
2. If they are in the wrong order, swap them
3. Continue through the array until no more swaps are needed
4. The largest elements "bubble up" to their correct positions