diff --git a/src/dashboard.py b/src/dashboard.py index 1d27526..9a8b768 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1297,7 +1297,9 @@ def _regexMatch(regex, text): def _getConfigurationList(): # configurations = {} - for i in os.listdir(WG_CONF_PATH): + items = os.listdir(WG_CONF_PATH) + items.sort() + for i in items: if _regexMatch("^(.{1,}).(conf)$", i): i = i.replace('.conf', '') try: