Sort stack events by time in ascending order