public int compare(LogMessage message1, LogMessage message2) {
		return ascending ?
				message1.getTimestamp().compareTo(message2.getTimestamp())
				: message2.getTimestamp().compareTo(message1.getTimestamp());
	}
Create a Time comparator for logmessages. The chronological order is dependent
on the argument to the constructor.

@param ascending true if you want LogMessages ordered ascending according to timestamp.
vespalog/src/main/java/com/yahoo/log/LogMessageTimeComparator.java