Sort enums to ensure that we get consistent ordering
Merge pull request #1 from bradh/sortenum

Sort enums to ensure that we get consistent ordering