Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Sorting question' topicStudent Support Forum > General > Archives > "Sorting question"

Help | Reply To Topic
Author Comment/Response
Mikel
05/29/09 7:26pm

Hi,
I have a 150x3 matrix filled with strings, I would like to sort it by the last column, then by the second one and then by the third one. How can I accomplish that?

Note that the following sequence of commands does not work:
list=SortBy[list,First]
list=SortBy[list,#[[2]]&]
list=SortBy[list,Last]

Thanks

URL: ,
Help | Reply To Topic