I would like to rearrange the rows in a python numpy array according to descending order of the first column. For Example,
([[2,3,1,8],
[4,7,5,20],
[0,-2,2,0]])
to be converted to
([[0,-2,2,0],
[2,3,1,8],
[4,7,5,20]])
such that first column converts to [0,2,4]
from [2,4,0]