Bubblesort

Here’s a nice example of how the bubblesort algorithm works: