I have two servers running the same set of internally developed apps. One is the "production" server, the other is the "dev/test" server. As time has gone on, the config files for the two have become more and "out of order". They mostly contain the same lines, but he values for each are different.
Here's an examples...
Prod server
siteUID = server-prod
backend = prod
node = prod1
system.default.timezone = UTC
Dev Server
siteUID = server-dev
backend = dev
node = dev1
system.default.timezone = CST
So same variables, different values. As you get further down the files, the entries get more and more out of order. To be clear, the same entries are in each file (with different values), they are just in different order. Also, there are a few values on the prod server that simply don't exist on the Dev server.
I want to get these files (there's about 20 on each server, and some are several hundred lines long) sorted in the same order. Specifically, I want to make the values in config files on the Dev server match the same order as the Prod server.
Unfortunately I cannot simply sort them (say alphabetically) as these entries are often broken into specific sections (such as variables that are required by a specific release) that need to stay together.
Any idea on how I can force the Dev files to line up with the Prod files?