MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Sorting nested lists with strings

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116267] Sorting nested lists with strings
  • From: Paperorbifold <kgodelNOSPAM at liberoNOSPAM.it>
  • Date: Wed, 9 Feb 2011 02:09:52 -0500 (EST)

I've a nested list of this kind:
list={{"Paul",23},{"Amanda",55},{"Carl",32},...}
Suppose I want to perform an alphabetic sort on the first element. Which is 
the condition I've to write in Sort[list,...]?
Actually Sort[list] automatically operates on the second element.
Thanks.
 
-- 
...and I will make them pay for\nwhat they've done! (J.L. Picard)


  • Prev by Date: Re: Mathematica 8 Home Edition
  • Next by Date: Re: ListCorrelate and Powers
  • Previous by thread: Re: ContourPlot and lines vrs. 8.0
  • Next by thread: Re: Sorting nested lists with strings