diff --git a/src/views/components/settings/Settings.tsx b/src/views/components/settings/Settings.tsx index 614f7714e..34477e331 100644 --- a/src/views/components/settings/Settings.tsx +++ b/src/views/components/settings/Settings.tsx @@ -501,7 +501,11 @@ export default function Settings(): JSX.Element {

UTRP CONTRIBUTERS

- {LONGHORN_DEVELOPERS_SWE.map(swe => ( + {LONGHORN_DEVELOPERS_SWE.sort( + (a, b) => + (githubStats?.userGitHubStats[b.githubUsername]?.commits ?? 0) - + (githubStats?.userGitHubStats[a.githubUsername]?.commits ?? 0) + ).map(swe => (
admin.githubUsername === username ) && !LONGHORN_DEVELOPERS_SWE.some(swe => swe.githubUsername === username) ) + .sort( + (a, b) => + (githubStats.userGitHubStats[b]?.commits ?? 0) - + (githubStats.userGitHubStats[a]?.commits ?? 0) + ) .map(username => (