Sorts events by date and time