sort events by start time