The Selectionsort Algorithm
pThe process continues...
Sorted side
Unsorted side
[0]       [1]        [2]       [3]        [4]       [5] 
Right Arrow: Swap
with
front
Swap
with
front
...and swap this element with the front of the unsorted side.