Open milahu opened 1 year ago
projects in .meta file are not sorted
add some projects in random order
cd $(mktemp -d) git init meta init meta project import b https://b.org/ meta project import c https://c.org/ meta project import a https://a.org/ cat .meta
now the projects are sorted by time
{ "projects": { "b": "https://b.org/", "c": "https://c.org/", "a": "https://a.org/" } }
projects are sorted by name, like dependencies in package.json
sort all objects with jq
jq
cat .meta | jq --sort-keys | sponge .meta
PRs are welcome
🐛 Bug Report
projects in .meta file are not sorted
To Reproduce
add some projects in random order
now the projects are sorted by time
Expected behavior
projects are sorted by name, like dependencies in package.json
Workaround
sort all objects with
jq