Start at the leftmost position in the array.
Compare the first two elements.
If they are in order, move to the next pair.
If not, swap them.
Repeat steps 1-3 for the entire array.