advanced sorting after the two keys are swappedthe two markers are again shifted starting where they left off left right the left marker will be shifted to key value and the right marker to value left right left right once the two markers are shiftedthe corresponding keys are swapped left right and the process is repeated this timethe left marker will stop at value while the right marker will stop at value left right right left note that the right marker has crossed the left such that right leftresulting in the termination of the outer while loop when the two markers crossthe right marker indicates the final position of the pivot value in the resulting sorted list thusthe pivot value currently located in the first element and the element marked by right have to be swapped resulting in value being placed in element number the final sorted position of the pivot within the original sequence