Skip to content

Commit 5d8cb6f

Browse files
pfeerickclaude
andcommitted
fix(site): sort gallery entries alphabetically instead of insertion order
Entries were rendered in scripts.json array order for both the full list and every filtered view, since both share the same `filtered` getter which only filtered, never sorted. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent e28c824 commit 5d8cb6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/generate_site.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def _safe_json(obj) -> str:
457457
}
458458
459459
return true;
460-
});
460+
}).sort((a, b) => a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' }));
461461
},
462462
463463
toggleTag(tag) {

0 commit comments

Comments
 (0)