FindPermutation
FindPermutation[expr] gives a permutation that produces expr by permuting Sort[expr].
FindPermutation[expr1,expr2] gives a permutation that converts expr1 to expr2 for two expressions that differ only in the order of their arguments.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.