Write out the config consistently by sorting keys