Question: How to sort a list or vector

Is there any function that we can sort a list / vector?

What abt a matrix? e.g.

M:=Matrix([[2, 5], [4, 0], [3, 9]]);

The sorted matrix (based on its first column) will be:

Matrix([[2, 5], [3, 9],[4, 0]]);

Please Wait...