dorian-sort-json Sorts keys of hashes of JSON files e.g. sort-json package.json Install gem install dorian-sort-json Or as part of my other gems: gem install dorian Usage git ls-files | grep "\.json\$" | xargs sort-json