Heapsort
Heapsort. Insert the integers while reheaping up, then remove the root while reheaping down.