diff --git a/modules/shared.py b/modules/shared.py index ed0a1b4b3..9ecd09402 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -211,7 +211,7 @@ def list_themes(): else: res = [] builtin = ["black-orange", "gradio/default", "gradio/base", "gradio/glass", "gradio/monochrome", "gradio/soft"] - themes = sorted(set(builtin + [x['id'] for x in res if x['status'] == 'RUNNING' and 'test' not in x['id'].lower()])) + themes = sorted(set(builtin + [x['id'] for x in res if x['status'] == 'RUNNING' and 'test' not in x['id'].lower()]), key=str.casefold) return themes