RE: how to sort, in to out

2002-03-21 Thread David Gray
> >> I am trying to figure out an easy way to sort out a array > of numbers: > >> 2 20 38 56 75 93 -17 -35 -53 -72 -90 Into the following: > >> -90 -72 -53 -35 -17 2 20 38 56 75 93 > >> I have done the following: > >> @x_step = grep { ! $x_step_t{ $_ } ++ } @x_step_t; > >> @x_step = sort {

Re: how to sort, in to out

2002-03-21 Thread Tor Hildrum
On 21/3/02 15:04, "David Gray" <[EMAIL PROTECTED]> wrote: >> I am trying to figure out an easy way to sort out a array of numbers: >> 2 20 38 56 75 93 -17 -35 -53 -72 -90 >> Into the following: >> -90 -72 -53 -35 -17 2 20 38 56 75 93 >> I have done the following: >> @x_step = grep { ! $x_step_

RE: how to sort, in to out

2002-03-21 Thread Jenda Krynicky
From: "David Gray" <[EMAIL PROTECTED]> > > I am trying to figure out an easy way to sort out a array of > > numbers: 2 20 38 56 75 93 -17 -35 -53 -72 -90 Into the following: > > -90 -72 -53 -35 -17 2 20 38 56 75 93 I have done the following: > > @x_step = grep { ! $x_step_t{ $_ } ++ } @x_ste

RE: how to sort, in to out

2002-03-21 Thread David Gray
> I am trying to figure out an easy way to sort out a array of numbers: > 2 20 38 56 75 93 -17 -35 -53 -72 -90 > Into the following: > -90 -72 -53 -35 -17 2 20 38 56 75 93 > I have done the following: > @x_step = grep { ! $x_step_t{ $_ } ++ } @x_step_t; > @x_step = sort {$a == $b} @x_step;

Re: how to sort, in to out

2002-03-21 Thread Jenda Krynicky
From: Jerry Preston <[EMAIL PROTECTED]> > I am trying to figure out an easy way to sort out a array of numbers: > > 2 20 38 56 75 93 -17 -35 -53 -72 -90 > > Into the following: > > -90 -72 -53 -35 -17 2 20 38 56 75 93 > > I have done the following: > > @x_step = grep { !

how to sort, in to out

2002-03-21 Thread Jerry Preston
Hi, I am trying to figure out an easy way to sort out a array of numbers: 2 20 38 56 75 93 -17 -35 -53 -72 -90 Into the following: -90 -72 -53 -35 -17 2 20 38 56 75 93 I have done the following: @x_step = grep { ! $x_step_t{ $_ } ++ } @x_step_t; @x_step = sort {$a == $b} @x_step; To