mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/tags: change tags sort order
This commit is contained in:
@ -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)
|
||||
)
|
||||
|
Reference in New Issue
Block a user