title: Sort objects in ArrayList by date?
body: <p>Every example I find is about doing this alphabetically, while I need my elements sorted by date.</p>
  
  <p>My ArrayList contains objects on which one of the datamembers is a DateTime object. On DateTime I can call the functions:</p>
  
  <pre><code>lt() // less-than
  lteq() // less-than-or-equal-to
  </code></pre>
  
  <p>So to compare I could do something like:</p>
  
  <pre><code>if(myList.get(i).lt(myList.get(j))){
      // ...
  }
  </code></pre>
  
  <p>What should I do inside the if block?</p>