From e698b20676207abebdf2f0650928379a8d4be9ae Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 16 Nov 2020 16:54:55 -0700 Subject: [PATCH] keep styles sorted --- bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.py b/bot.py index 3a66ce4..3fab86b 100644 --- a/bot.py +++ b/bot.py @@ -49,6 +49,7 @@ def get_styles(): image = list(folder.glob('*.png'))[0] video = list(folder.glob('*.mp4'))[0] result.append(Style(s_id, name, source, image, video)) + result.sort(key=lambda x: x.name) return result -- 2.45.2