From eb549417db14d52994724073f74fc188e21ff38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 19 Jul 2017 11:33:12 +0200 Subject: [PATCH] Sort tags alphabetically --- soundboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soundboard.py b/soundboard.py index 69a470a..f6e1226 100644 --- a/soundboard.py +++ b/soundboard.py @@ -44,7 +44,7 @@ def index(sound=None, text=None, video=None): sounds = [os.fsencode(file).decode() for file in os.listdir(config.path)] sounds = sorted(sounds) - tags = queryDB("SELECT name FROM tag") + tags = queryDB("SELECT name FROM tag ORDER BY name COLLATE NOCASE") if sound is not None and sound in sounds: subprocess.Popen(["omxplayer", os.path.join(config.path, sound).encode("utf-8")], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)