I am trying to sort a cell matrix based on two columns using MATLAB:
ticker date price
msft 1/9/11 19.8
msft 1/8/11 18.7
csco 1/8/11 9.8
csco 1/9/11 10.0
I want to sort the matrix first by date then by ticker, so the result I want is:
ticker date price
csco 1/8/11 9.8
msft 1/8/11 18.7
csco 1/9/11 10.0
msft 1/9/11 19.8
Anyone knows how I can do that? THanks.