Sorting by dates now works and the events are displaying properly