Alphabetize config and plugin data

Use case or problem

When syncing my Obsidian folder between computers via git, the plugin data.json files and the Obsidian config file reorder their contents often, making the diff unnecessarily large and hard to read.

Proposed solution

When writing these configs, and in the plugin saveData function, alphabetize the json before writing to disk.

Current workaround (optional)

This can be worked around by omitting these files from the git repo, but then I have to configure my plugins separately on each computer.


I think pretty-printing the config instead of putting it all on one line would also make a huge difference.

It’s not on one line anymore, at least.
But alphabetic ordering would still be welcome.