be sure to sort the events before returning them