Skip to content

Commit

Permalink
order garden cards by communities length from most to least
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati0x committed Oct 21, 2024
1 parent 54b3ca0 commit 15d5709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/app/(app)/gardens/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function Page() {
{tokenGardens
.sort(
(a, b) =>
(a.communities?.length ?? 0) - (b.communities?.length ?? 0),
(b.communities?.length ?? 0) - (a.communities?.length ?? 0),
)
.map((garden) => (
<div key={garden.id}>
Expand Down

0 comments on commit 15d5709

Please sign in to comment.