chiark / gitweb /
make-secnet-sites: sort the properties in level.output_props
[secnet.git] / make-secnet-sites
index 74b09bd2395092323204dccd59b50d83c7f8a900..4826a445caa5604ca2c61f75a3dc1c8730bc8cf1 100755 (executable)
@@ -417,7 +417,7 @@ class level:
        def prop_out(self,n):
                return self.allow_properties[n](n,str(self.properties[n]))
        def output_props(self,w,ind):
-               for i in self.properties.keys():
+               for i in sorted(self.properties.keys()):
                        if self.allow_properties[i]:
                                self.indent(w,ind)
                                w.write("%s"%self.prop_out(i))