Add option to sort events by startDate instead of endDate