Sorts list of events