diff --git a/server/szurubooru/func/tags.py b/server/szurubooru/func/tags.py index c8f7aa3c..6d3a62f7 100644 --- a/server/szurubooru/func/tags.py +++ b/server/szurubooru/func/tags.py @@ -36,7 +36,7 @@ def sort_tags(tags): return sorted( tags, key=lambda tag: ( - default_category_name == tag.category.name, + default_category_name != tag.category.name, tag.category.name, tag.names[0].name) )