 Quad swap as utilized by quadsort requires four variables and four temporary variables.The variables are partially sorted to the temporary variables, then they are fully sorted back to the original variables.This provides a potential computational advantage though it takes over 40 lines of code to perform a single quad swap.