This is a selection sort.
Selection sort, means checking unsorted elements in search of the smallest and the smallest becoming the largest sorted.
To the bottom, an explanation of what each color is responsible for.
sorted
unsorted
smallest in iteration
iteration step
restart