sorted

fun <I : IntervalLike<I>> List<I>.sorted(): List<I>

Returns a new list of intervals, sorted by start time, or end time in case of a tie.