sort events by date