Sort repo and date intervals.