[Feature Request] Make sortorder of tags independent of case #1034
This commit is contained in:
parent
2199096191
commit
2481d9b29c
|
@ -455,7 +455,7 @@ function onViewTagsListClick() {
|
||||||
$(list).append('<h3>Tags</h3><i>Click on the tag name to edit it.</i><br>');
|
$(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>');
|
$(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 count = everything.filter(x => x == tag.id).length;
|
||||||
const template = $('#tag_view_template .tag_view_item').clone();
|
const template = $('#tag_view_template .tag_view_item').clone();
|
||||||
template.attr('id', tag.id);
|
template.attr('id', tag.id);
|
||||||
|
|
Loading…
Reference in New Issue