> "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
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
> "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
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]
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
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
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.
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
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