title: How can I sort a std::map first by value, then by key?
body: <p>I need to sort a <code>std::map</code> by value, then by key. The map contains data like the following:</p>
  
  <pre><code>  1  realistically
    8         really
    4         reason
    3     reasonable
    1     reasonably
    1     reassemble
    1    reassembled
    2      recognize
   92         record
   48        records
    7           recs
  </code></pre>
  
  <p>I need to get the values in order, but the kicker is that the keys need to be in alphabetical order after the values are in order. How can I do this?</p>