server/tags: change tags sort order

This commit is contained in:
rr- 2016-08-14 12:29:23 +02:00
parent 07237bc2bc
commit d6942121e5

View file

@ -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)
)