Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Sorting nested list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57443] Re: Sorting nested list
  • From: "meznaric" <meznaric at gmail.com>
  • Date: Sat, 28 May 2005 05:39:06 -0400 (EDT)
  • References: <d6us0f$ivm$1@smc.vnet.net><d76o0i$7mu$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Plizak: Simply apply Sort:
Sort[{{a,{2,4,1}}, {c, {1,2}},{b,{3.2,-2}}}]

will give you the sorted list you are looking for:
{{a, {2, 4, 1}}, {b, {3.2, -2}}, {c, {1, 2}}}

Sebastjan


  • Prev by Date: Solve question
  • Next by Date: Re: Integration under Mathematica 5.0
  • Previous by thread: Re: Re: Sorting nested list
  • Next by thread: Re: Sorting nested list