http://qs321.pair.com?node_id=198801


in reply to Sort routine

this seems a perfect case for a Schwartzian Transform:
@event_queue = map { $_->[0] } sort { $a->[1] <=> $b->[1] } map { [$_, split /\t/, $_, 1] } @event_queue;
cheers,
Aldo

King of Laziness, Wizard of Impatience, Lord of Hubris

Replies are listed 'Best First'.
Re^2: Sort routine
by Aristotle (Chancellor) on Sep 18, 2002 at 20:09 UTC
    You do, of course, mean map { [$_, split /\t/, $_, 2] }

    Makeshifts last the longest.