Step through each pass and watch the minimum swap into the front of the unsorted region.
Scan for the minimum, then swap it into the front of the unsorted region.
Operations for n elements.
Not stable · In place
Scan the unsorted region for its minimum, then swap it into place.
Selection sort done.