Watch partitioning place each pivot in its final position, recursively sorting left & right subarrays
Pivot
Last element chosen
Scanner (i)
Comparing to pivot
firsthigh
Partition boundary
Less than pivot
Placed left of boundary
Swapped
Just moved into place
Pivot landing
Pivot swapped to final spot
Sorted
Final position confirmed