void () { final Optional<Date> first = getDates() .stream() .sorted(Date::compareTo) .fi<caret>ndFirst(); final Optional<Date> first2 = getDates() .stream() .sorted(Comparator.naturalOrder()) .findFirst(); }