Now it happened that while he was performing his priestly service before God in the appointed order of his division,
(New American Standard Bible)
And it came to pass, that while he executed the priest's office before God in the order of his course,
(King James Version)