Post Reply 
Sorting a matrix?
06-19-2015, 04:54 AM
Post: #3
RE: Sorting a matrix?
Create a sort function, something like
f:=(x,y)->if y[4]!=x[4] then return x[4]>y[4] else return x[2]>y[2] end;
then sort(m,f) will sort a matrix m using f as a sort function.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sorting a matrix? - DrD - 06-18-2015, 01:48 PM
RE: Sorting a matrix? - DrD - 06-18-2015, 03:26 PM
RE: Sorting a matrix? - parisse - 06-19-2015 04:54 AM
RE: Sorting a matrix? - DrD - 06-19-2015, 10:28 AM



User(s) browsing this thread: 1 Guest(s)