Hi! I was looking for a function I need in internet but I didn't find it... I need to sort a multidimensional array(matrix).. for example
Original matrix
1,b,3
2,c,5
3,a,1
I need a function, lets call it magic() xD with 2 arguments, the matrix and which col to sort first...
so..
the result of magic(originalmatrix,1) could be..
3,a,1
1,b,3
2,c,5
Do you understand me? xD .. sorry I'm a beginner... How can I make it ? The matrix.sort doesn't help me with that.. i guess..
Thank you very much!! ^^
Original matrix
1,b,3
2,c,5
3,a,1
I need a function, lets call it magic() xD with 2 arguments, the matrix and which col to sort first...
so..
the result of magic(originalmatrix,1) could be..
3,a,1
1,b,3
2,c,5
Do you understand me? xD .. sorry I'm a beginner... How can I make it ? The matrix.sort doesn't help me with that.. i guess..
Thank you very much!! ^^