diff --git a/app/datasets/page.tsx b/app/datasets/page.tsx
index 3747337..af93413 100644
--- a/app/datasets/page.tsx
+++ b/app/datasets/page.tsx
@@ -22,14 +22,32 @@ export default function Datasets() {
}
}, [theme]);
+ // Sort datasets by title in alphabetical order
+ const sortedDatasets = [...datasets].sort((a: Data, b: Data) =>
+ a.title.localeCompare(b.title)
+ );
+
return (
- {datasets.map((dataset: Data, index: number) => (
-
+ {sortedDatasets.map((dataset: Data, index: number) => (
+
))}
- {modalActive && }
+ {modalActive && (
+
+ )}
);
}
diff --git a/app/prompts/page.tsx b/app/prompts/page.tsx
index 8cae15b..56ab4ea 100644
--- a/app/prompts/page.tsx
+++ b/app/prompts/page.tsx
@@ -22,11 +22,17 @@ export default function Prompts() {
}
}, [theme]);
+ // Sort prompts by title in alphabetical order
+ const sortedPrompts = [...prompts].sort((a: Data, b: Data) =>
+ a.title.localeCompare(b.title)
+ );
+
return (
- {prompts.map((prompt: Data, index: number) => (
+ {sortedPrompts.map((prompt: Data, index: number) => (
))}
- {modalActive && }
+ {modalActive && (
+
+ )}
);
}
diff --git a/app/tools/page.tsx b/app/tools/page.tsx
index 5bef999..2b49f53 100644
--- a/app/tools/page.tsx
+++ b/app/tools/page.tsx
@@ -28,14 +28,28 @@ export default function Tools() {
}
}, [theme]);
+ // Sort tools by title in alphabetical order
+ const sortedTools = [...tools].sort((a: Data, b: Data) =>
+ a.title.localeCompare(b.title)
+ );
+
return (
- {tools.map((tool: Data, index: number) => (
-
+ {sortedTools.map((tool: Data, index: number) => (
+
))}
- {modalActive && }
+ {modalActive && (
+
+ )}
);
}