Recursively sort YAML mapping keys.
gem install dorian-sort-yamlAlso included in the aggregate gem:
gem install doriansort-yaml [yaml ...] [file ...]Run sort-yaml -h for generated option details and sort-yaml -v for the installed version.
- Reads YAML from arguments, files, or stdin and prints normalized YAML.
sort-yaml config/locales/en.yml