http://www.perlmonks.org?node_id=62697

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: (hashes)

if i have
%hash={ 89=>3, 45=>2, 1 =>5, 40=>3}
i want the output as
1=>5, 40=>3, 45=>2, 89=>3}
how do i do it.

Originally posted as a Categorized Question.