title: Null safe date comparator for sorting in Java 8 Stream
body: <p>I'm using this to get the newest item. How can I get this to be null safe and sort with null dates last (oldest). createDt is a joda LocalDate object.</p>
  
  <pre><code>Optional&lt;Item&gt; latestItem = items.stream()
                               .sorted((e1, e2) -&gt; e2.getCreateDt().compareTo(e1.getCreateDt()))
                               .findFirst();
  </code></pre>