MathGroup Archive 2000

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

Search the Archive

Re: newbie question on sorting


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