I have a 3 column array like this:
A = [6 -1 0; 6 0 3; 1 4 3; 1 2 5];
I need the first column to be in descending order and
If you're looking to keep the rows intact as records, and sort them based on column 1 and then column 2, use sortrows(), with negative column indexes to indicate columns whose values are to be sorted in descending order.
sortrows()
B = sortrows(A, [-1 2])