Sort sub hash keys to have a stable ordering
Merge pull request #532 from mbornoz/hash-ordering

Sort sub hash keys to have a stable ordering