Combinatorica`
Combinatorica`

LexicographicPermutations

LexicographicPermutations[l]

constructs all permutations of list l in lexicographic order.

Details and Options