title: Sorting the data in increasing order based on keys in Multimap Google Guava
body: <p>I created a Multimap </p>
  
  <pre><code>Multimap&lt;Integer, String&gt; mhm= ArrayListMultimap.create();
  </code></pre>
  
  <p>my numbers range from 0 to 2400.</p>
  
  <p>I have inserted data like</p>
  
  <pre><code> mhm.put(800 ,"A")
   mhm.put(1200 ,"B")
   mhm.put(1200 ,"A")
   mhm.put(1500 ,"B")
   mhm.put(600 ,"A")
   mhm.put(700 ,"B")
   mhm.put(1200 ,"A")
   mhm.put(1201 ,"B")
  </code></pre>
  
  <p>I want to sort the Multimap on key field that is Integer? There are not much posts on satckoverflow which tells how to do this. </p>
  
  <p>expected output:</p>
  
  <pre><code> mhm.put(600 ,"A")
   mhm.put(700 ,"B")
   mhm.put(800 ,"A")
   mhm.put(1200 ,"B")
   mhm.put(1200 ,"A")
   mhm.put(1200 ,"A")
   mhm.put(1201 ,"A")
   mhm.put(1500 ,"B")
  </code></pre>
  
  <p>Please note that the expected output is sorted only on key. 
  <strong>If two keys have same value then the key which appeared first should come first</strong>. 
  how to enforce this? Is this case automatically taken care when we sort the Multimap on keys?</p>
  
  <p><em>This is not homework question, trying to play around Google Guava.</em></p>