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)