|
|
| Just another Perl shrine | |
| PerlMonks |
Re: More Sorted Business with Hashesby dws (Chancellor) |
| on Dec 22, 2001 at 00:43 UTC ( [id://133929]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Is there a way to sort a hash by values and leave it in a hash?
No. Hashes are inherently non-ordered. However, for what you're trying to do, something like will give you keys ordered by value.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||