winfreed.py: sort packages by name before processing
[winfreed.git] / winfreed.py
index ef96bc5..c49de16 100755 (executable)
@@ -49,7 +49,7 @@ def get_pkg(pkg_file):
 
 
 def process_all(path, cb):
-    listing = glob.glob(os.path.join(path, '*.ini'))
+    listing = sorted(glob.glob(os.path.join(path, '*.ini')))
     for pkg_file in listing:
         pkg = get_pkg(pkg_file)
         if not pkg: