Sorting hash of hashes in perl using a Dumper <p>I have a hash of hashes like this:</p> <pre><code>%hash = { car =&gt; { '10' =&gt; 'y', '11' =&gt; 'y', '12' =&gt; 'y', '13' =&gt; 'y' }, bus =&gt; { '10' =&gt; 'y', '11' =&gt; 'y', '12' =&gt; 'y', '13' =&gt; 'y' }, tr =&gt; { '10' =&gt; 'y', '11' =&gt; 'y', '12' =&gt; 'y', '13' =&gt; 'y' } } </code></pre> <p>How can I can in PERL to print this hash of hashes (using Dumper) where the keys of each section are sorted (10,11,12,13,14...) in the above order?</p> <p>Thanks in advance,</p> <p>Miki</p>