title: Custom sorting of list based on date
body: <p>I got:</p>
  
  <pre><code>List&lt;Comment&gt; list = new ArrayList&lt;Comment&gt;();
  </code></pre>
  
  <p>My class Comment contains: id, name and date;
  I got some function that adds specified Comments, but I would like to order after that my list by date descending. How to do it with this:</p>
  
  <pre><code>Collections.sort(list, comparator)
  </code></pre>
  
  <p>?</p>