Selection sort is a simple sorting algorithm that makes a pass over the unsorted part of the list, finds the largest item, and swaps it into the correct place. Passes are repeated until the whole list is sorted. Selection sort is a comparison sort, i.e. it sorts only by comparing and swapping list elements. https://en.wikipedia.org/wiki/Selection_sort
Part of my series of sorting algorithms: https://scratch.mit.edu/studios/14132246/