From 94006156d75f939ca54d36be3c38083a61c2b870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Fri, 25 Mar 2022 11:50:13 -0700 Subject: [PATCH] Adds sort order to free event type 404 (#2278) --- apps/web/pages/[user]/[type].tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/web/pages/[user]/[type].tsx b/apps/web/pages/[user]/[type].tsx index d991b81f..569b1d1f 100644 --- a/apps/web/pages/[user]/[type].tsx +++ b/apps/web/pages/[user]/[type].tsx @@ -169,6 +169,14 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => }, ], }, + orderBy: [ + { + position: "desc", + }, + { + id: "asc", + }, + ], select: { id: true, },