return to top
source
Every partition operation is a swap, including the equal-pivot blocks.
Both returned subsegments lie in the segment passed to partition.
The exact indirect sort preserves every entry, including its repeated keys. The work stack contains only subsegments of the original array.