Skip to content

Commit d2114fb

Browse files
committed
Sort logos on users page for fairness
1 parent 2750063 commit d2114fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/users/index.html.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ module.exports = ({ page }) =>
5656
</div>
5757

5858
<div className="logos">
59-
{logos.map(logo =>
59+
{logos.sort((a, b) =>
60+
a.name.toLowerCase() < b.name.toLowerCase() ? -1 : 1
61+
).map(logo =>
6062
<a href={logo.link} target="_blank">
6163
<img src={'/users/logos/' + logo.img} title={logo.name} className={logo.isRound ? 'round' : null} />
6264
</a>

0 commit comments

Comments
 (0)