Lexicographic Permutation