server/tag-categories: sort responses by order
This commit is contained in:
parent
a896c1a5a7
commit
697bd45420
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ def get_all_category_names() -> List[str]:
|
||||||
def get_all_categories() -> List[model.TagCategory]:
|
def get_all_categories() -> List[model.TagCategory]:
|
||||||
return (
|
return (
|
||||||
db.session.query(model.TagCategory)
|
db.session.query(model.TagCategory)
|
||||||
.order_by(model.TagCategory.name.asc())
|
.order_by(model.TagCategory.order.asc(), model.TagCategory.name.asc())
|
||||||
.all()
|
.all()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue