title: How to convert DateTimeComparator to an Ordering[DateTime] in Scala
body: <p>I just typed this which seems a little ugly:</p>
  
  <pre><code>val maxTime = times.max(DateTimeComparator.getInstance().asInstanceOf[Comparator[DateTime]] asScala)
  </code></pre>
  
  <p><code>times</code> is a sequence of org.joda.time.DateTime.</p>
  
  <p>There must be a better way to get that Ordering object for DateTime. Is there?</p>
  
  <p>In particular it'd be great to lose the asInstanceOf ...</p>