sort events by pos in registration.