in reply to Re: What are the other option for sorting the keys of hash of hashes
in thread What are the other option for sorting the keys of hash of hashes

But i want to sort it according to the values of hashes....
so how to sort an array of hashes according to hashes value ...??
  • Comment on Re^2: What are the other option for sorting the keys of hash of hashes

Replies are listed 'Best First'.
Re^3: What are the other option for sorting the keys of hash of hashes
by Anonymous Monk on Sep 29, 2008 at 11:48 UTC
    so how to sort an array of hashes according to hashes value ...??
    Same,
    @hash = sort {$a->{"Size"} <=> $b->{"Size"}} @hash;
    Faster still, array or arrays
    @hash = [ blah1 => 33], [ blah2 => 44 ]; @hash = sort {$a->[1] <=> $b->[1] } @hash;
    So which is more useful? flexible? easier to write maintain? Whats cheaper, your time, or computer time?