better way of sorting events in getDayOccurrenceData