in reply to Sorting lists of lists (or arrays of arrays or thingies of thingies)

Perhaps I don't quite understand, but how is this different from something like this:
# 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;
Apologies if I'm just missing something...
  • Comment on RE: Sorting lists of lists (or arrays of arrays or thingies of thingies)
  • Download Code

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
    You're not missing anything, i am.
    i tried for a while getting a sort block to work,
    and i'll swear that i tried that at some point or another,
    but apparently not. Thanks for the help.

    jynx

      Hey... TMTOWTDI.. :)

      It's all about experience... Keep the code coming.