Skip to content

Commit 731f374

Browse files
committed
Sort all contributors alphabetically, handle lowercase names
1 parent d9a6101 commit 731f374

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/api/contributors.json.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ async function listAllContributors() {
1717
);
1818

1919
// Remove duplicates and sort
20-
return [...new Set(allContributors)].sort();
20+
return [...new Set(allContributors)].sort((a, b) =>
21+
a.toLowerCase().localeCompare(b.toLowerCase()),
22+
);
2123
}
2224

2325
export const GET: APIRoute = async () => {

0 commit comments

Comments
 (0)