fix sorting order in EventCollector#sorted_events