title: Bash associative array sorting by value
body: <p>I get the following output:</p>
  
  <pre><code>Pushkin - 100500 
  Gogol - 23 
  Dostoyevsky - 9999
  </code></pre>
  
  <p>Which is the result of the following script:</p>
  
  <pre><code>for k in "${!authors[@]}"
  do
      echo $k ' - ' ${authors["$k"]}
  done   
  </code></pre>
  
  <p>All I want is to get the output like this:</p>
  
  <pre><code>Pushkin - 100500 
  Dostoyevsky - 9999
  Gogol - 23
  </code></pre>
  
  <p>which means that the keys in associative array should be sorted by value. Is there an easy method to do so?</p>