client/tag-categories: sort by order on tag-category edit page
This commit is contained in:
parent
697bd45420
commit
afe4c5c847
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ class TagCategoriesView extends events.EventTarget {
|
|||
} else if (a.isDefault) {
|
||||
return -1;
|
||||
}
|
||||
return a.name.localeCompare(b.name);
|
||||
return a.order == b.order
|
||||
? a.name.localeCompare(b.name)
|
||||
: a.order - b.order;
|
||||
});
|
||||
for (let tagCategory of categoriesToAdd) {
|
||||
this._addTagCategoryRowNode(tagCategory);
|
||||
|
|
Loading…
Reference in a new issue