I repeated your experiment, but the input matrix I'm getting is different from yours. Weren't we supposed to get the same from ?. ?
Ben ________________________________________ From: [email protected] [[email protected]] on behalf of Joe Bogner [[email protected]] Sent: Wednesday, April 30, 2014 04:20 To: [email protected] Subject: [Jchat] sorting a matrix by columns and rows I had a fun moment with J earlier tonight. I was contemplating how to sort a matrix by it's columns and rows while doing the dishes. I sat down and tried it and it was remarkably easy /:~ /:~"1 (10 10 $ ?. 100#50) http://pasteboard.co/2vm2rWOu.png or a bigger matrix: viewmat /:~ /:~"1 (500 500 $ ?. 10000#500) http://pasteboard.co/2vm7CkN2.png I figure it's old hat, but still wanted to share that I got a kick out of it ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
