Ask Your Question

huehue's profile - activity

2019-07-01 08:23:58 -0600 received badge  Popular Question (source)
2014-12-27 09:57:29 -0600 asked a question How can I sort the matrix acc. to the first column?

I have a Mat. I want to change the order of its rows, based on the value of their first element. So a row that begins with 1 will be placed before a row beginning with 2 etc. If two rows begin with the same number, I want to keep their original order.

Is there a simple way to achieve this ? I would be very grateful if someone help me.