How it works: Bubble sort goes through a list, and if it finds that an element is greater than the element ahead of it, it swaps the elements' positions.
Code by me.