Selection sort and insertion sort

Selection sort swaps the smallest remaining element into the next place, and insertion sort slides each element left into the sorted part before it, so after k passes either way the first k places are in order.

From AP Computer Science A.