commandbox-modules/commandbox-dotenv

Order population by key name

lmajano opened this issue · 2 comments

When populating an env file with either new content or updates the keys are stored in whatever order. This is annoying and difficult to find keys if you have many. Order the keys in ascending order and then populate back the file

If we add this, it will need to be a setting. I personally don't want the order to change at all. I usually have grouped together keys that make sense and don't want them changed.

I think we should have the file match the example file... replacing the .env.example values with the values from the .env... it's part of a new issue I'm posting, for new functionality.