From 2481d9b29c72567166952737b714cefb4a5d628d Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 28 Aug 2023 01:50:32 +0300 Subject: [PATCH] [Feature Request] Make sortorder of tags independent of case #1034 --- public/scripts/tags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/tags.js b/public/scripts/tags.js index 0d913b2d8..f9976319d 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -455,7 +455,7 @@ function onViewTagsListClick() { $(list).append('

Tags

Click on the tag name to edit it.
'); $(list).append('Click on color box to assign new color.

'); - for (const tag of tags.slice().sort((a, b) => a?.name?.localeCompare(b?.name))) { + for (const tag of tags.slice().sort((a, b) => a?.name?.toLowerCase()?.localeCompare(b?.name?.toLowerCase()))) { const count = everything.filter(x => x == tag.id).length; const template = $('#tag_view_template .tag_view_item').clone(); template.attr('id', tag.id);