title: How to reverseOrder a Map<Key, Value> on the values in Java?
body: <p>I'm making program in <code>java</code> and I don't know what kind of <code>Map</code> would be best to use here. Maybe <code>Tree</code>, <code>Hash</code>, <code>Map</code>,<code>...</code>?</p>
  
  <pre><code>degree.put("a",5);
  degree.put("b",2);
  degree.put("c",4);
  degree.put("d",2);
  degree.put("e",3);
  degree.put("f",5);
  </code></pre>
  
  <p>Now I have to Sort this list according to given Integer values</p>
  
  <p>Sorted Map Should be :</p>
  
  <p><code>{a=5, f=5, c=4, e=4, b=4, d=2}</code></p>
  
  <p>Could someone give <code>code</code> example?</p>