MathGroup Archive 2011

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

Search the Archive

Re: Sorting a list of symbols

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116851] Re: Sorting a list of symbols
  • From: Simon <simonjtyler at gmail.com>
  • Date: Wed, 2 Mar 2011 04:35:36 -0500 (EST)
  • Reply-to: comp.soft-sys.math.mathematica at googlegroups.com

Here's a quick hack that you could probably clean up

SortBy[{v1, v2, v3, v10, v4}, 
 ToExpression[StringDrop[SymbolName[#], 1]] &]


  • Prev by Date: Re: Local Variables in Do[]
  • Next by Date: Array from for-loop iterations
  • Previous by thread: Sorting a list of symbols
  • Next by thread: Re: Sorting a list of symbols