We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f41f1d3 commit 8c6e5a3Copy full SHA for 8c6e5a3
src/landings/components/shared/LandingArticleGridWithFilter.tsx
@@ -61,7 +61,9 @@ export const ArticleGrid = ({ flatArticles }: ArticleGridProps) => {
61
// Extract unique categories from the articles
62
const categories: string[] = [
63
ALL_CATEGORIES,
64
- ...new Set(flatArticles.flatMap((item) => item.category || [])),
+ ...Array.from(new Set(flatArticles.flatMap((item) => item.category || []))).sort((a, b) =>
65
+ a.localeCompare(b),
66
+ ),
67
]
68
69
const applyFilters = () => {
0 commit comments