iman_saleh has asked for the wisdom of the Perl Monks concerning the following question:
does that but the sorting is ascending. Can anyone help me find the way to make it sort descending instead? Thanks,@sortedKeys = sort { $h{$a} <=> $h{$b} } keys %h;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting keys of hash table by values
by samtregar (Abbot) on Jan 31, 2008 at 21:28 UTC | |
|
Re: Sorting keys of hash table by values
by ikegami (Patriarch) on Jan 31, 2008 at 21:53 UTC | |
|
Re: Sorting keys of hash table by values
by kyle (Abbot) on Jan 31, 2008 at 21:38 UTC | |
by rjray (Chaplain) on Jan 31, 2008 at 22:28 UTC | |
by kyle (Abbot) on Feb 01, 2008 at 02:40 UTC | |
by lidden (Curate) on Jan 31, 2008 at 22:34 UTC | |
by rjray (Chaplain) on Jan 31, 2008 at 23:12 UTC | |
by lidden (Curate) on Jan 31, 2008 at 23:30 UTC |