Re: Sort problem

*To*: mathgroup at smc.vnet.net*Subject*: [mg56344] Re: [mg56292] Sort problem*From*: Andrzej Kozlowski <akoz at mimuw.edu.pl>*Date*: Fri, 22 Apr 2005 06:23:35 -0400 (EDT)*References*: <200504210936.FAA05023@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

On 21 Apr 2005, at 18:36, konstantpi at mail15.com wrote: > Hi > How to sort two lists such as: > age={30,12,60,20}; > pple={"john","kate","peter","alice"}; > > to give the output: > age={12,20,30,60} > pple={"kate","alice","john","peter"} > > ie: to keep every person opposite his age number. > thanks > Transpose[Sort[Transpose[{age, pple}]]] {{12, 20, 30, 60}, {"kate", "alice", "john", "peter"}} Andrzej Kozlowski Chiba, Japan http://www.akikoz.net/andrzej/index.html http://www.mimuw.edu.pl/~akoz/

**References**:**Sort problem***From:*konstantpi@mail15.com