Skip to content

Commit

Permalink
Merge pull request #8 from pioneers/dev/dwai-past-scholars-sort-order
Browse files Browse the repository at this point in the history
Reverse sort order for past scholars to highlight most recent winners
  • Loading branch information
dwai213 authored May 14, 2024
2 parents faa6f6b + f775143 commit c9f74c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pie-website/src/pages/competition/RCScholarship.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Layout>
Expand Down

0 comments on commit c9f74c3

Please sign in to comment.