arranged events by time