Re: sort procedure
- To: mathgroup at smc.vnet.net
- Subject: [mg52512] Re: [mg52483] sort procedure
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Tue, 30 Nov 2004 05:24:30 -0500 (EST)
- References: <200411290622.BAA27959@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Sort works all right. Check the Help browser to learn about ordering
function. E.g.
In[1]:=
pairs = Table[Random[Integer, {0, 99}],{10}, {2}]
Out[1]=
{{89,90},{87,84},{57,99},{88,64},{15,46},{81,50},{74,39},{64,79},{96,67},{34,
25}}
In[2]:=
Sort[pairs, #1[[2]] < #2[[2]] & ]
Out[2]=
{{34,25},{74,39},{15,46},{81,50},{88,64},{96,67},{64,79},{87,84},{89,90},{57,
99}}
Tomas Garza
Mexico City
----- Original Message -----
From: "paolo" <tarpanelli at libero.it>
To: mathgroup at smc.vnet.net
Subject: [mg52512] [mg52483] sort procedure
> If I have a data serie of n paired observations (x_t,x_t-1) ordered
> according to time, how can i re-order this serie according to the size of
> x_t-1
>
> The procedure Sort it seems it does not work well.
> anyone has suggestions?
> thanks
>
> P.
>
>
>
> ____________________________________________________________
> Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di
> attivazione.
> Abbonati subito su http://www.libero.it
>
>
>
- References:
- sort procedure
- From: "paolo " <tarpanelli@libero.it>
- sort procedure