On Thu, 6 Dec 2001 10:01:48 +0000 (GMT), Richard Smith wrote: >Thank you for your advice on the script. I would be >very interested to know how you would approach the >problem. I am an illustrator first, and programmer >comes a way down my list of abilities. =8O)
Well, *I* would use a Schwartzian Transform. There's a tutorial on <http://www.5sigma.com/perl/schwtr.html>. @sorted = map { $_->[0] } sort { $b->[2] <=> $a->[2] || $a->[1] cmp $b->[1] } map { [ $_, split ' ' ] } @unsorted; -- Bart.