[Feature Request] Make sortorder of tags independent of case #1034

This commit is contained in:
Cohee 2023-08-28 01:50:32 +03:00
parent 2199096191
commit 2481d9b29c
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ function onViewTagsListClick() {
$(list).append('<h3>Tags</h3><i>Click on the tag name to edit it.</i><br>');
$(list).append('<i>Click on color box to assign new color.</i><br><br>');
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);