Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15990

Sorting nested lists with strings

From Paperorbifold <kgodelNOSPAM@liberoNOSPAM.it>
Newsgroups comp.soft-sys.math.mathematica
Subject Sorting nested lists with strings
Date 2011-02-09 07:09 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iitejq$jib$1@smc.vnet.net> (permalink)

Show all headers | View raw


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)

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Sorting nested lists with strings Paperorbifold <kgodelNOSPAM@liberoNOSPAM.it> - 2011-02-09 07:09 +0000

csiph-web