From 5fe5e363a036e2050600782e9b5fa23d641376af Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Wed, 31 Jan 2024 18:09:24 +0330 Subject: [PATCH] fix: the order of podcast shows on /podcasts page --- src/pages/podcasts/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/podcasts/index.tsx b/src/pages/podcasts/index.tsx index 6965065..6d88488 100644 --- a/src/pages/podcasts/index.tsx +++ b/src/pages/podcasts/index.tsx @@ -66,7 +66,7 @@ export const getStaticProps = async ({ params }: GetStaticPropsContext) => { return { props: { - shows: podcastShows, + shows: podcastShows.sort((a, b) => (a.title > b.title ? -1 : 1)), latestEpisodes: latestEpisodes.data, highlightedEpisodes: highlightedEpisodes.data, // errors,