Reorder the list so that all the elements with values less than the pivot are arranged before the pivot and all the other elements are arranged after the pivot. Numbers equal to the pivot can go in either partitions. At this point, the pivot is in its final position.