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