i have this number array
A= [1 2 3 4
1 2 3 1
3 1 1 2
1 2 1 1
2 1 0 6
1 2 1 0]
i want to sort the 4th column from smallest to largest, and the corresponding rows will followed in their new position, something like this:
A =[1 2 1 0
1 2 3 1
1 2 1 1
3 1 1 2
1 2 3 4
2 1 0 6]
so the last row, become on the top because zero in the 4th column is the smallest number in 4th column, so how i will do that? thanks