# to do their service

"to serve" 

# before Aaron and before Aaron's sons

"in the presence of Aaron and his sons"

# This was

"What they did was"

# They treated all the Levites in this way

"They did to the Levites what Yahweh commanded." The word "They" refers to the people of Israel.