sort config file
[enigma2.git] / lib / python / Components / config.py
index 3598fd6ea5d57a3dc62bfb42b188fb42cd17f5df..4cdd359a5205f65f11ec4abb7baec429a4f9e2d9 100644 (file)
@@ -37,7 +37,9 @@ class configFile:
                        
                fileHandle = open("config", "w")
                
-               for x in self.configElements:
+               keys = self.configElements.keys()
+               keys.sort()
+               for x in keys:
                        wstr = x + "=" + self.configElements[x]
                        
                        if wstr[len(wstr) - 1] != '\n':