title: How to reverse the order of SortedSet
body: <p>I want to print an ordered list in Map using the following:</p>
  
  <pre><code>Map&lt;Float, String&gt; mylist = new HashMap&lt;&gt;();
  
  mylist.put(10.5, a);
  mylist.put(12.3, b);
  mylist.put(5.1, c);
  
  SortedSet&lt;Float&gt; orderlist = new TreeSet&lt;Float&gt;(mylist.keySet());
  
  for (Float i : orderlist) {
      System.out.println(i+" "+mylist.get(i));
  }
  </code></pre>
  
  <p>The above code prints:</p>
  
  <pre><code>5.1 c
  10.5 a
  12.3 b    
  </code></pre>
  
  <p>But how do I the print the orderlist in reverse order like below:</p>
  
  <pre><code>12.3 b
  10.5 a
  5.1 c
  </code></pre>