Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

Re: newbie question on sorting

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26441] Re: [mg26420] newbie question on sorting
  • From: BobHanlon at aol.com
  • Date: Thu, 21 Dec 2000 01:51:42 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Table[Random[ Integer, {0, 100}], {j, 4}, {k, 3}]

{{98, 34, 45}, {80, 50, 86}, {53, 30, 36}, {37, 3, 77}}

Sort[%]

{{37, 3, 77}, {53, 30, 36}, {80, 50, 86}, {98, 34, 45}}


Bob Hanlon

In a message dated 12/20/00 1:14:12 AM, niels.waller at home.com writes:

>I have just started using Mathematica for a programming task and have run
>into a difficulty.  I have a matrix M. I would like to sort the rows of
>M
>based on the values of the first column.  Is there any easy way to do this?
>Any and all help will be greatly appreciated.
>


  • Prev by Date: RE: SphericalPlot3D doesn't work
  • Next by Date: Re: newbie question on sorting
  • Previous by thread: Re: newbie question on sorting
  • Next by thread: Re: newbie question on sorting