Then they appointed the priests to their divisions and the Levites in their orders for the service of God in Jerusalem, as it is written in the book of Moses.