diff --git a/packages/nextjs/app/_components/ActiveGrants.tsx b/packages/nextjs/app/_components/ActiveGrants.tsx index 600ff4d..827d0ec 100644 --- a/packages/nextjs/app/_components/ActiveGrants.tsx +++ b/packages/nextjs/app/_components/ActiveGrants.tsx @@ -24,6 +24,14 @@ export const ActiveGrants = async () => { return null; } + // Sort by approved date DESC + const sortedActiveGrants = activeGrants.sort((a, b) => { + if (a.approvedAt && b.approvedAt) { + return b.approvedAt - a.approvedAt; + } + return 0; + }); + return (