Restoring Order to Permutations and Combinations