Fix the config printer to sort the values.

This commit is contained in:
Mike Auty
2016-08-24 01:13:38 +01:00
parent 6b47b992a7
commit 4d7701be66
@@ -353,7 +353,7 @@ class HierarchicalDict(collections.Mapping):
def __str__(self):
"""Turns the Hierarchical dict into a string representation"""
return json.dumps(dict([(key, self[key]) for key in self.generator()]), indent = 2)
return json.dumps(dict([(key, self[key]) for key in sorted(self.generator())]), indent = 2)
class TranslationLayerRequirement(ConstructableRequirementInterface):