Split the environment variable list into required and optional sections
Order the environment variables alphabetically

None of these are really more important than the other, and we’re never going to be able to pick a sensible order otherwise :)