This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# FindPermutation

 FindPermutation[expr]gives a permutation that produces expr by permuting Sort[expr]. FindPermutation gives a permutation that converts to for two expressions that differ only in the order of their arguments.
• The permutation is returned with head Cycles, in disjoint cyclic form.
• If the arguments of are different, the permutation returned is uniquely defined.
Permutation relating two expressions with the same elements:
Verify the result using Permute:
Permutation relating two expressions with the same elements:
 Out[1]=
Verify the result using Permute:
 Out[2]=
 Scope   (1)
For expressions containing repeated parts, the permutation is not uniquely defined. FindPermutation only returns one of them:
However, this other permutation also relates those two expressions:
On permutation lists of integers FindPermutation coincides with PermutationCycles:
Relation with Ordering:
New in 8