sort artists by name

This commit is contained in:
inherentlee committed 2026-05-05 14:25:50 -07:00
1 parent 1f2a828c66
commit ed33548adc
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -26,4 +26,9 @@ export default function (eleventyConfig) {
return shuffledArray;
});
/* Sort alphabetically by item title */
eleventyConfig.addFilter("sortAlphabeticallyByTitle", collection => {
collection.sort((b, a) => b.data.title.localeCompare(a.data.title));
return collection;
});
};