Write the contents of the state file in order
Since then it'll be deterministid what is useful to have integration tests that check the state file.
Since then it'll be deterministid what is useful to have integration tests that check the state file.