I try to generate the possible permutations on a list of matrices as follows:
In[762]:= mats
Permutations[#,{3}]&/@mats
mats[[Ordering[#]]]&/@Permutations[Range[3]]
Out[762]= {{{0, 0, 1/2}, {0, 0, 1/2}, {0, 0, 1}}, {{1/2, 3/2,
0}, {-(1/2), 3/2, 0}, {0, 1, 0}}, {{3/2, -(1/2), 0}, {3/2, 1/2,
0}, {1, 0, 0}}}
Out[763]= {{{{0, 0, 1/2}, {0, 0, 1/2}, {0, 0, 1}}, {{0, 0, 1/2}, {0,
0, 1}, {0, 0, 1/2}}, {{0, 0, 1}, {0, 0, 1/2}, {0, 0, 1/2}}}, {{{1/
2, 3/2, 0}, {-(1/2), 3/2, 0}, {0, 1, 0}}, {{1/2, 3/2, 0}, {0, 1,
0}, {-(1/2), 3/2, 0}}, {{-(1/2), 3/2, 0}, {1/2, 3/2, 0}, {0, 1,
0}}, {{-(1/2), 3/2, 0}, {0, 1, 0}, {1/2, 3/2, 0}}, {{0, 1, 0}, {1/
2, 3/2, 0}, {-(1/2), 3/2, 0}}, {{0, 1, 0}, {-(1/2), 3/2, 0}, {1/2,
3/2, 0}}}, {{{3/2, -(1/2), 0}, {3/2, 1/2, 0}, {1, 0, 0}}, {{3/
2, -(1/2), 0}, {1, 0, 0}, {3/2, 1/2, 0}}, {{3/2, 1/2, 0}, {3/
2, -(1/2), 0}, {1, 0, 0}}, {{3/2, 1/2, 0}, {1, 0, 0}, {3/
2, -(1/2), 0}}, {{1, 0, 0}, {3/2, -(1/2), 0}, {3/2, 1/2, 0}}, {{1,
0, 0}, {3/2, 1/2, 0}, {3/2, -(1/2), 0}}}}
Out[764]= {{{{0, 0, 1/2}, {0, 0, 1/2}, {0, 0, 1}}, {{1/2, 3/2,
0}, {-(1/2), 3/2, 0}, {0, 1, 0}}, {{3/2, -(1/2), 0}, {3/2, 1/2,
0}, {1, 0, 0}}}, {{{0, 0, 1/2}, {0, 0, 1/2}, {0, 0, 1}}, {{3/
2, -(1/2), 0}, {3/2, 1/2, 0}, {1, 0, 0}}, {{1/2, 3/2, 0}, {-(1/2),
3/2, 0}, {0, 1, 0}}}, {{{1/2, 3/2, 0}, {-(1/2), 3/2, 0}, {0, 1,
0}}, {{0, 0, 1/2}, {0, 0, 1/2}, {0, 0, 1}}, {{3/2, -(1/2), 0}, {3/
2, 1/2, 0}, {1, 0, 0}}}, {{{3/2, -(1/2), 0}, {3/2, 1/2, 0}, {1, 0,
0}}, {{0, 0, 1/2}, {0, 0, 1/2}, {0, 0, 1}}, {{1/2, 3/2,
0}, {-(1/2), 3/2, 0}, {0, 1, 0}}}, {{{1/2, 3/2, 0}, {-(1/2), 3/2,
0}, {0, 1, 0}}, {{3/2, -(1/2), 0}, {3/2, 1/2, 0}, {1, 0, 0}}, {{0,
0, 1/2}, {0, 0, 1/2}, {0, 0, 1}}}, {{{3/2, -(1/2), 0}, {3/2, 1/2,
0}, {1, 0, 0}}, {{1/2, 3/2, 0}, {-(1/2), 3/2, 0}, {0, 1,
0}}, {{0, 0, 1/2}, {0, 0, 1/2}, {0, 0, 1}}}}
As you can see, the above two methods give different results. I checked the related document, but still couldn't find the reason. Any tips will be appreciated.
Regards, Zhao