Make sure data is sorted by eventId