Re: sorting with Swartz Transform

2004-12-01 Thread Randal L. Schwartz
> "John" == John W Krahn <[EMAIL PROTECTED]> writes: John> But of course I knew that! :-) John> I should have said "but it doesn't beat the Guttman Rosler John> Transform for speed." Yes. The ST can sort any multilevel complex sort, and is "programmer efficient". When the GRT *can* be used

Re: sorting with Swartz Transform

2004-11-30 Thread John W. Krahn
Randal L. Schwartz wrote: "John" == John W Krahn <[EMAIL PROTECTED]> writes: John> The Schwartzian Transform is good but it doesn't beat the Guttman John> Rosler Transform. :-) For specific cases. For the general case, the ST is still the most flexible. But of course I knew that! :-) I should ha

Re: sorting with Swartz Transform

2004-11-30 Thread Randal L. Schwartz
> "John" == John W Krahn <[EMAIL PROTECTED]> writes: John> The Schwartzian Transform is good but it doesn't beat the Guttman John> Rosler Transform. :-) For specific cases. For the general case, the ST is still the most flexible. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc

Re: sorting with Swartz Transform

2004-11-29 Thread Gunnar Hjalmarsson
Jeremy Kister wrote: Gunnar Hjalmarsson wrote: my @unsorted = ( '5 127.0.0.1', '10 127.0.1.1', '5 27.0.0.1', '6 10.0.0.1', '1 17.0.0.1', '5 209.0.0.1', ); my @sorted = map { $_->[0] } sort { $a->[1] <=> $b->[1]

Re: sorting with Swartz Transform

2004-11-28 Thread John W. Krahn
Jeremy Kister wrote: I am trying to simplify some of my code. The output I am expecting is: 1 17.0.0.1 5 27.0.0.1 5 127.0.0.1 5 209.0.0.1 6 10.0.0.1 10 127.0.1.1 where the first colomn is the main sorting column, and if there are multiples of that value, the ip should be sorted. I have code the pe

Re: sorting with Swartz Transform

2004-11-28 Thread Randy W. Sims
Jeremy Kister wrote: I am trying to simplify some of my code. The output I am expecting is: 1 17.0.0.1 5 27.0.0.1 5 127.0.0.1 5 209.0.0.1 6 10.0.0.1 10 127.0.1.1 where the first colomn is the main sorting column, and if there are multiples of that value, the ip should be sorted. I have code the pe

Re: sorting with Swartz Transform

2004-11-28 Thread Jeremy Kister
On Sunday, November 28, 2004 at 3:36am, Gunnar Hjalmarsson wrote: > >> any suggestions to pretty this bloat ? > > > > > > my @unsorted = ( > > '5 127.0.0.1', > > '10 127.0.1.1', > > '5 27.0.0.1', > > '6 10.0.0.1', > > '1 17.0.0.1', > > '5 209.0.0.

Re: sorting with Swartz Transform

2004-11-28 Thread Edward WIJAYA
A very good lesson to learn Schwartzian Transform. Thanks Gunnar! -- Regards, Edward WIJAYA SINGAPORE On Sun, 28 Nov 2004 09:36:26 +0100, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: I have code the performs the task, but it's a Swartzian Transform, a temporary array, another swartz transform

Re: sorting with Swartz Transform

2004-11-28 Thread Gunnar Hjalmarsson
Jeremy Kister wrote: I am trying to simplify some of my code. The output I am expecting is: 1 17.0.0.1 5 27.0.0.1 5 127.0.0.1 5 209.0.0.1 6 10.0.0.1 10 127.0.1.1 where the first colomn is the main sorting column, and if there are multiples of that value, the ip should be sorted. I have code the pe