I have a matrix and i want the row to be order as culom 2 in the matrix example a=[1 2 3 ; 2 3 1; 3 1 2] so the answer will be [3 1 2; 1 2 3; 2 3 1] best regards computidoo -- View this message in context: http://mailinglists.scilab.org/sort-problem-tp2654045p2654045.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.