MathGroup Archive 1997

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

Search the Archive

Sorting tables by columns

  • To: mathgroup at smc.vnet.net
  • Subject: [mg6385] Sorting tables by columns
  • From: fbd2 at psu.edu (fbd2 at psu.edu)
  • Date: Sat, 15 Mar 1997 01:21:20 -0500 (EST)
  • Organization: CAC
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Does anyone know how to sort tables by one of its columns? 
For example,  the table

2  3  4  5
1  2  7  8
6  9  2  1

can be sorted by column 1, giving:

1  2  7  8
2  3  4  5
6  9  2  1

This can be done using Excel; however I need to perform
this operation inside a Mathematica program.
Is there an automated procedure in Mathematica to accomplish this?

Thanks,

Flavio


  • Prev by Date: Re: Re: FreeExpr called on live expr
  • Next by Date: Re: Numerical Left Eigenvectors
  • Previous by thread: Re: Coords of intersecting lines...
  • Next by thread: Re: Sorting tables by columns