Uses a bubble sorting algorithm to sort a series of numbers from smallest to largest.