in reply to How do you sort a hash of array refs?
my @sorted = sort { $hash{SIZE}[$a] <=> $hash{SIZE}[$b] } 0..$#{$hash{ +SIZE}}; $hash{$_} = [ @{$hash{$_}}[@sorted] ] for keys %hash;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you sort a hash of array refs?
by Dominus (Parson) on Nov 16, 2000 at 05:22 UTC | |
|
Re: Re: How do you sort a hash of array refs?
by el-moe (Scribe) on Nov 16, 2000 at 05:32 UTC |