 
 
 
 
 
 
RE: A question about sort
- To: mathgroup at smc.vnet.net
- Subject: [mg48225] RE: [mg48195] A question about sort
- From: "David Park" <djmp at earthlink.net>
- Date: Tue, 18 May 2004 04:17:18 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Song,
Here is an example.
testlist = {{c, a, b}, {3, 1, 2}};
We want to sort on the first list and have the second list go along with it.
testlist // Transpose // Sort // Transpose
{{a, b, c}, {1, 2, 3}}
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
From: Daohua Song [mailto:ds2081 at columbia.edu]
To: mathgroup at smc.vnet.net
Hi everyone,
   When i get the eigenvalues and eigenvectors for a matrix. i want to
sort the eigenvalues and hope eigenvectors change the positions
correspondingly.  How to do it ?
   Thanks
Song

