MathGroup Archive 2001

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

Search the Archive

Re: sort


Russell, Sort does exactly what you want. See example

In[28]:=
Sort[{{0, 3, 0}, {3, 0, 2}, {0, 3, 1}}]

Out[28]=
{{0, 3, 0}, {0, 3, 1}, {3, 0, 2}}



Mariusz


======================================
Mariusz Jankowski
University of Southern Maine
email: mjkcc at usm.maine.edu




"Russell Witte" <nails at asu.edu> wrote in message
news:9j8ojc$5u6$1 at smc.vnet.net...
> Does anybody now how to sort a matrix first by one column and then by
> another column (giving priority to the first column and sorting by
> second column only when there are ties in the first column).
>
> Please respond to nails at asu.edu
>
> Thank you,
> --Russ--
>



  • Prev by Date: Re: Integrate[Sqrt[Tan[x]], x]
  • Next by Date: Re: [Q] Generalized Partitions
  • Previous by thread: Re: sort
  • Next by thread: RE: sort