I just typed this, which seems a little ugly:
val maxTime = times.max(DateTimeComparator.getInstance().asInstanceOf[Comparator[DateTime]] asScala)
times is the sequence org.joda.time.DateTime.
There should be a better way to get this Ordering object for a DateTime. There is?
In particular, it would be great to lose asInstanceOf ...
source share