From 1262b12ee4e8cd574b93780ec15b898d24d0acb2 Mon Sep 17 00:00:00 2001 From: Flummi Date: Fri, 7 Jan 2022 18:51:29 +0100 Subject: [PATCH] fix tag order --- src/inc/lib.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/inc/lib.mjs b/src/inc/lib.mjs index e193fce..1258205 100644 --- a/src/inc/lib.mjs +++ b/src/inc/lib.mjs @@ -101,7 +101,8 @@ export default new class { .select("tags.id", "tags.tag", "user.user") .leftJoin("tags", "tags.id", "tags_assign.tag_id") .leftJoin("user", "user.id", "tags_assign.user_id") - .where("tags_assign.item_id", itemid); + .where("tags_assign.item_id", itemid) + .orderBy("tags.id", "asc"); for(let t = 0; t < tags.length; t++) { if(tags[t].tag.startsWith(">")) tags[t].badge = "badge-greentext badge-light";