Skip to content

Commit 6ba5c0f

Browse files
committed
Sort logos by alpha for fairest display
1 parent 90e1b5d commit 6ba5c0f

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)