mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/tag-categories: sort by order on tag-category edit page
This commit is contained in:
@ -24,7 +24,9 @@ class TagCategoriesView extends events.EventTarget {
|
|||||||
} else if (a.isDefault) {
|
} else if (a.isDefault) {
|
||||||
return -1;
|
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) {
|
for (let tagCategory of categoriesToAdd) {
|
||||||
this._addTagCategoryRowNode(tagCategory);
|
this._addTagCategoryRowNode(tagCategory);
|
||||||
|
Reference in New Issue
Block a user