in reply to Do the Schwartzian boogy!

@AoA is already in schwartzian form
@AoA = ( [ "n1", "34" ], [ "n3", "14" ], [ "n2", "1" ], [ "n4", "5" ], ); @sorted = sort { $a->[1] <=> $b->[1] } @AoA; use Data::Dumper; $Data::Dumper::Indent=1;die Dumper\@sorted; __END__ $VAR1 = [ [ 'n2', 1 ], [ 'n4', 5 ], [ 'n3', 14 ], [ 'n1', 34 ] ];

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: Do the Schwartzian boogy!
by rvosa (Curate) on May 30, 2005 at 10:02 UTC
    Oops... d'oh... of course... that works. Thank you! Problem solved. I was thinking far too complicated...