server/tags: change tags sort order
This commit is contained in:
parent
07237bc2bc
commit
d6942121e5
|
@ -36,7 +36,7 @@ def sort_tags(tags):
|
||||||
return sorted(
|
return sorted(
|
||||||
tags,
|
tags,
|
||||||
key=lambda tag: (
|
key=lambda tag: (
|
||||||
default_category_name == tag.category.name,
|
default_category_name != tag.category.name,
|
||||||
tag.category.name,
|
tag.category.name,
|
||||||
tag.names[0].name)
|
tag.names[0].name)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue