sorts all events by date before adding to the table