I\'ve been trying to sort an i18n translations YAML file with Ruby so I can manage new translations in a better and organized way, but I\'ve been wondering if there is something
There is also an atom package that will do this as well https://github.com/akfernun/yaml-sortkeys
This may be another appealing option: https://github.com/redealumni/i18n_yaml_sorter
Actually this is a nice question. You want to deep sort hashes. So I don't like to re-invent the wheel and then I searched for a good implementation and I found one I like. Take a look at it https://gist.github.com/1083930. It works fine.