[Feature] `Scoop export` consistent order of objects
seapat opened this issue · comments
Sean Klein commented
Feature Request
Is your feature request related to a problem? Please describe.
The order of top-level objects ("apps", "buckets", "config") in the generated json changes with each export, which makes it annoying to put that file under git.
(Note: the content of each array seems to be consistent, only the order in which they appear changes)
Describe the solution you'd like
Ensure a consistent order of the generated json. The easy solution would be to just sort before returning, that might add some insignificant overhead.
Describe alternatives you've considered
I could sort the file myself, but I think this would make sense to be added to scoop itself.
Indy commented