The partition function in the quicksort algorithm will make all elements left to the pivot (chosen as the middle element) smaller than or equal to the pivot while all elemen