This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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:
In[1]:=
Click for copyable input
Out[1]=
Verify the result using Permute:
In[2]:=
Click for copyable input
Out[2]=
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