Correcting for permutation order