gube has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
Hi, within the array i am having hashes i have to sort by name and store it in the array.. See the below example i want to sort by name in hashes and store it into array.
Thanks for your Code in Advance.
$VAR1 = { 'is_selected' => 1, 'name' => 'Me', 'user_id' => '1' }; $VAR2 = { 'is_selected' => 0, 'name' => 'Admin Admin', 'user_id' => '14' }; $VAR3 = { 'is_selected' => 0, 'name' => 'Proximate Shine', 'user_id' => '15' };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to sort array of hashes?
by swampyankee (Parson) on Dec 07, 2005 at 17:22 UTC | |
|
Re: How to sort array of hashes?
by serf (Chaplain) on Dec 07, 2005 at 17:36 UTC | |
|
Re: How to sort array of hashes?
by eff_i_g (Curate) on Dec 07, 2005 at 17:31 UTC | |
|
Re: How to sort array of hashes?
by holli (Abbot) on Dec 07, 2005 at 18:42 UTC |