Just a simple implementation of the sorting algorithm Bubble Sort. It works by swapping the numbers if the first is greater than the second. I could probably go a bit farther with this. EDIT: Optimized by adding 1 block.