1.Compare
the first and second items. If they are out of order, swap
them.
2.Compare
the second and third items. If they are out of order, swap
them.
3.Repeat
this pattern for all remaining pairs. The final comparison
and possible swap are between the next-to-last
and last elements.