Sort entries when doing dumpPython

In order to make it easier to compare different configurations, we now sort the named items used in the configuration.