Bubble sort is a sorting algorithm that will sort an array of numbers.

- [0]
- [1]
- [2]
- [3]
- [4]

First, it will compaire the value of the first two numbers in the array. If the number at [1] is less than the number at [0], the numbers will swap, moving the lower number to the left.