Do a trivial sort on the enums generated.

Python was apparently randomizing the output of the hash iterator,
preventing ccache after a make clean.