title: LinkedHashSet to order elements in descending order?
body: <p>I have a set declared as follows </p>
  
  <pre><code>Set&lt;String&gt; orderSet = new LinkedHashSet &lt;String&gt;();
  </code></pre>
  
  <p>The String values stored are a combination of date and time convention</p>
  
  <pre><code>orderSet.add(bean.getDate()+"," + bean.getTimeConvention());
  </code></pre>
  
  <p>I always get the output as insertion order and that is why the linkedHashSet is designed for</p>
  
  <p>I need the output to be in reverse order so that the latest date comes first?</p>
  
  <p>i have heard of <a href="http://docs.oracle.com/javase/7/docs/api/java/util/NavigableSet.html" rel="nofollow">NavigableSet</a> but it doesn't work well for my scenario ..
  Any suggestions?</p>
  
  <p>thanks</p>