Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: List Manipulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124953] Re: List Manipulation
  • From: "Ernst H.K. Stelzer" <ernst.stelzer at physikalischebiologie.de>
  • Date: Tue, 14 Feb 2012 06:37:16 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

Hi,

Generates the list but not sorted the way you want it

Inner[List, l1, l2,Sequence]
{{a,1},{b,4},{c,7},{a,2},{b,5},{c,8},{a,3},{b,6},{c,9}}

Your expected output in Mathematica Style

Sort[Inner[List, l1, l2,Sequence]]
{{a,1},{a,2},{a,3},{b,4},{b,5},{b,6},{c,7},{c,8},{c,9}}

Greetings

Ernst


  • Prev by Date: Re: Setting global graphics options
  • Next by Date: Re: MenuCommand Events
  • Previous by thread: Re: List Manipulation
  • Next by thread: Re: List Manipulation