From f7751439952944923df50ff68ad328d6babbe357 Mon Sep 17 00:00:00 2001 From: Dennis Wai Date: Thu, 9 May 2024 12:40:44 -0700 Subject: [PATCH] Reverse sort order for past scholars to highlight most recent winners --- pie-website/src/pages/competition/RCScholarship.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pie-website/src/pages/competition/RCScholarship.js b/pie-website/src/pages/competition/RCScholarship.js index 568f68f..81988f3 100644 --- a/pie-website/src/pages/competition/RCScholarship.js +++ b/pie-website/src/pages/competition/RCScholarship.js @@ -44,7 +44,7 @@ const query = graphql` const RCScholarship = () => { const data = useStaticQuery(query) const scholarsUnordered = data.allContentfulPastScholars.nodes - const scholars = scholarsUnordered.sort((a, b) => (a.year > b.year ? 1 : -1)) + const scholars = scholarsUnordered.sort((a, b) => (a.year > b.year ? -1 : 1)) // sorts in descending order return (