fix gallery sort

This commit is contained in:
Vladimir Mandic
2024-08-30 14:03:15 -04:00
parent 9da340fdcf
commit 0a05826724
+1 -1
View File
@@ -273,7 +273,7 @@ async function gallerySearch(evt) {
async function gallerySort(btn) {
const t0 = performance.now();
const arr = Array.from(el.files.children);
const arr = Array.from(el.files.children).filter((node) => node.name); // filter out separators
const fragment = document.createDocumentFragment();
el.files.innerHTML = '';
switch (btn.charCodeAt(0)) {