David with Zadok of the sons of Eleazar, and Ahimelech of the sons of Ithamar, divided them according to their ordering in their service.
according to their offices in their service: to perform their office as priests in the service of the temple in their turns.