diff --git a/app/public/scripts/fetch-prompts.js b/app/public/scripts/fetch-prompts.js
index 8936f84..e0cd7a6 100644
--- a/app/public/scripts/fetch-prompts.js
+++ b/app/public/scripts/fetch-prompts.js
@@ -22,16 +22,19 @@ if (!dateStr) return "–";
};
function renderPromptCard(prompt) {
- const tagSpans = (prompt.tags ?? []).map(tag =>
+ const sortedTags = (prompt.tags ?? []).slice().sort((a, b) =>
+ a.toLowerCase().localeCompare(b.toLowerCase())
+ );
+ const tagSpans = sortedTags.map(tag =>
`${tag}`
).join('');
const escapedDescription = (prompt.description ?? '').replace(/\n/g, '
');
const notes = prompt.notes ?? '';
return `
-
${notes}
-${notes}
+