mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-04-17 19:40:07 +02:00
(hopefully) consistent recurse tag filter sorting
This commit is contained in:
@@ -286,6 +286,7 @@ class PhotoGallery {
|
|||||||
const imagelist = document.getElementById("imagelist");
|
const imagelist = document.getElementById("imagelist");
|
||||||
if (!imagelist) return;
|
if (!imagelist) return;
|
||||||
let str = "";
|
let str = "";
|
||||||
|
this.shown.sort((a, b) => a.src.replace(a.name, "").localeCompare(b.src.replace(b.name, "")));
|
||||||
this.shown.forEach((item, index) => {
|
this.shown.forEach((item, index) => {
|
||||||
let tags = this.parseHierarchicalTags(item.tags || []);
|
let tags = this.parseHierarchicalTags(item.tags || []);
|
||||||
str += `<div class="column"><figure title="${this.renderTree(tags)}"><img src="${
|
str += `<div class="column"><figure title="${this.renderTree(tags)}"><img src="${
|
||||||
|
|||||||
Reference in New Issue
Block a user