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