Question: re-arrange indice in a new matrix

please a need help

i try to organize the matrix by indice , i.e 


B := Vector[row]([1, 4, 13]);
 ind:=indices(B);

A := Matrix(3, 3, [1, 3, 4, 2, 4, 1, 2, 3, 2]);
#i try to do that

A:=B(ind,..); # and didn´t work  

#this is what i wont,

A := [1, 1], [1, 2], [1, 3], [3, 1], [3, 2], [3, 3], [2, 1], [2, 2], [2, 3]

 

help

Please Wait...