Im having an issue with PowerShell universal where whenever i make a change to a script or app it seems to change the scripts.ps1, schedules.ps1 or dashboards.ps1. It doesn’t make any meaningful change it just changes the order they appear in the file. Whilst this doesnt break anything it does mean i have to make go through each commit to make sure nothing has been removed.
This isn’t new or unique to 5.0.16, but I do agree that it’s super annoying and I haven’t ever found a logical explanation for why it happens. With a config file such as this, it isn’t a big deal, but I’m afraid of it happening to something where the order of the lines actually does matter (such as text file).
PSU tries to put them into a deterministic order to prevent reordering in the future. There were issues where saving files would cause things to reorder even when nothing was actually changed. That said, it should always be like that and not unnecessarily be reordering things since that was the original intent on ordering them alphabetically.
If you are experiencing issues with this, please open an issue in the tracker.