Lexicographic permutations