From 4f1c0388a5d504eb20b48c1c4f0d2011b8a1a931 Mon Sep 17 00:00:00 2001 From: Florian Greistorfer Date: Mon, 9 Feb 2026 08:38:36 +0100 Subject: [PATCH] (hopefully) consistent recurse tag filter sorting --- templates/functionality.js | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/functionality.js b/templates/functionality.js index 6b9db5a..223f317 100644 --- a/templates/functionality.js +++ b/templates/functionality.js @@ -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 += `