Sorting events.