diff --git a/srv/poe_manager/app.py b/srv/poe_manager/app.py index 4ab8153..c9f7e4e 100644 --- a/srv/poe_manager/app.py +++ b/srv/poe_manager/app.py @@ -118,6 +118,8 @@ def index(): c.execute("SELECT mac, name, is_active FROM devices ORDER BY name ASC") devices = c.fetchall() + devices = sorted(devices, key=lambda d: d[1][0].upper()) + # Intervall aus DB laden c.execute("SELECT value FROM settings WHERE key='interval'") row = c.fetchone()