Skip to content

Commit d7b9ce4

Browse files
committed
chore: fix sort logic
1 parent 5f95313 commit d7b9ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/next-data/generators/supportersData.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async function fetchOpenCollectiveData() {
1414
const members = payload
1515
.filter(({ role, isActive }) => role === 'BACKER' && isActive)
1616
.sort((a, b) => {
17-
return a.totalAmountDonated >= b.totalAmountDonated;
17+
return b.totalAmountDonated - a.totalAmountDonated; //descending
1818
})
1919
.map(({ name, website, image, profile }) => ({
2020
name,

0 commit comments

Comments
 (0)