(hopefully) consistent recurse tag filter sorting

This commit is contained in:
2026-02-09 08:38:36 +01:00
committed by Florian Greistorfer
parent 8c60bd1eb1
commit 4f1c0388a5

View File

@@ -286,6 +286,7 @@ class PhotoGallery {
const imagelist = document.getElementById("imagelist");
if (!imagelist) return;
let str = "";
this.shown.sort((a, b) => a.src.replace(a.name, "").localeCompare(b.src.replace(b.name, "")));
this.shown.forEach((item, index) => {
let tags = this.parseHierarchicalTags(item.tags || []);
str += `<div class="column"><figure title="${this.renderTree(tags)}"><img src="${