events are sorted