Sort events in ascending order