Selection sort performs the following steps:
Starting at index 0, search the entire array to find the next smallest or largest value.
Swap the smallest or largest value found with the value at index 0.
Repeat steps 1 & 2 starting from the next index.