aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Widget/ThematicsList/ThematicsList.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Widget/ThematicsList/ThematicsList.tsx')
-rw-r--r--src/components/Widget/ThematicsList/ThematicsList.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/Widget/ThematicsList/ThematicsList.tsx b/src/components/Widget/ThematicsList/ThematicsList.tsx
index f120978..d17dbd1 100644
--- a/src/components/Widget/ThematicsList/ThematicsList.tsx
+++ b/src/components/Widget/ThematicsList/ThematicsList.tsx
@@ -17,11 +17,7 @@ const ThematicsList = ({ title }: { title: string }) => {
if (error) return <div>{t`Failed to load.`}</div>;
if (!data) return <div>{t`Loading...`}</div>;
- const sortedThematics = [...data].sort((a, b) =>
- a.title.localeCompare(b.title)
- );
-
- const thematics = sortedThematics.map((thematic) => {
+ const thematics = data.map((thematic) => {
return currentThematicSlug !== thematic.slug ? (
<li key={thematic.databaseId}>
<Link href={`/thematique/${thematic.slug}`}>