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)