title: Perl Sort a hash by value in descending order and then key in ascending order
body: <p>Suppose I have a hash like</p>
  
  <pre><code>%hash = 
  {
      husky =&gt; 2
      alaska =&gt; 2
      akita =&gt; 3
      brand =&gt;1
  }
  </code></pre>
  
  <p>How can I sort it by descending value(number), and ascending key(alphabet)? The desired result should be:</p>
  
  <pre><code>{
      akita =&gt;3
      alaska =&gt;2
      husky =&gt;2
      brand=&gt;1
  }
  </code></pre>