in reply to Sorting lists of lists (or arrays of arrays or thingies of thingies)
Apologies if I'm just missing something...# sort a list of arrayrefs by index 2 of each member array @sorted = sort { $a->[2] <=> $b->[2] } @arraylist; # sort a list of hashrefs by key 'key' of each member hash @sorted = sort { $a->{key} <=> $b->{key} } @hashlist;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Sorting lists of lists (or arrays of arrays or thingies of thingies)
by jynx (Priest) on Oct 14, 2000 at 06:34 UTC | |
by Fastolfe (Vicar) on Oct 14, 2000 at 17:08 UTC |