Make quicksort sort in-place