Look into the "Quicksort" sorting algorithm.