Spaces:
Running
Running
alphabetical sort on languageList
Browse files
client/src/components/LeaderboardSection/hooks/useLanguageStats.js
CHANGED
@@ -133,7 +133,8 @@ export const useLanguageStats = (leaderboards, filteredLeaderboards) => {
|
|
133 |
return orderA - orderB;
|
134 |
}
|
135 |
|
136 |
-
|
|
|
137 |
})
|
138 |
.map(([lang]) => lang);
|
139 |
|
|
|
133 |
return orderA - orderB;
|
134 |
}
|
135 |
|
136 |
+
// Sort alphabetically by language name instead of by count
|
137 |
+
return a[0].localeCompare(b[0]);
|
138 |
})
|
139 |
.map(([lang]) => lang);
|
140 |
|