I have a 100x3
cell array, with each element being a string. Now I wish to sort it according to the 1st column. I can easily do this
sorted1 = sortrows(data, 1);
However, I don't want to stop here. I wish to further sort it according to the 2nd column. Of course, this sorting cannot destroy the 1st sorting. In other words, it is quite similar to how the dictionary is sorted.
How may I do this?