Filter events that are over, and sort events returned by the end_time