We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f650a90 commit 6e1f81dCopy full SHA for 6e1f81d
1 file changed
src/components/Contributors.js
@@ -34,16 +34,18 @@ const ContributorCard = styled(ActionCard)`
34
const Contributors = () => {
35
return (
36
<Container>
37
- {data.contributors.map((contributor, idx) => {
38
- return (
39
- <ContributorCard
40
- key={idx}
41
- image={contributor.avatar_url}
42
- to={contributor.profile}
43
- title={contributor.name}
44
- />
45
- )
46
- })}
+ {data.contributors
+ .sort((a, b) => a.name.localeCompare(b.name))
+ .map((contributor, idx) => {
+ return (
+ <ContributorCard
+ key={idx}
+ image={contributor.avatar_url}
+ to={contributor.profile}
+ title={contributor.name}
+ />
47
+ )
48
+ })}
49
</Container>
50
)
51
}
0 commit comments