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";