Sort calendar events.