Jordy224 has asked for the wisdom of the Perl Monks concerning the following question:
... Question: How do I sort the array by the value of the hash key “size" Such that it is arranged in a new array in descending order? ie.@array [0] %Hash { name => proteobacteria, size => 30 [1] %Hash { phylum => alphabacteria, size => 50 [2] %Hash { name => cytophaga, size => 10
so far my script looks as follows...@newarray [0] %Hash {name => alphabacteria size => 50
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to sort by the key value of an Array of Hash structure?
by moritz (Cardinal) on Jul 30, 2008 at 16:25 UTC | |
|
Re: How to sort by the key value of an Array of Hash structure?
by whakka (Hermit) on Jul 30, 2008 at 17:04 UTC | |
by kyle (Abbot) on Jul 30, 2008 at 17:56 UTC | |
|
Re: How to sort by the key value of an Array of Hash structure?
by dwm042 (Priest) on Jul 30, 2008 at 18:19 UTC |