Selection Sort Algorithm
  • Select the first item.
  • Also select the highest item to its right.
  • Swap them if they are out of order.
  • Select the next item and repeat steps 2 and 3.
Once you are done with the last two items, the set will be in sorted order.