I think the sortrows function is what you’re looking for.
>> sortrows(data,1)
ans =
-1 4
1 3
5 7
I think the sortrows function is what you’re looking for.
>> sortrows(data,1)
ans =
-1 4
1 3
5 7