Skip to content

Commit 609015c

Browse files
Merge pull request #813 from gregorylegarec/feat/sort-konnectors
Sort konnectors alphabetically
2 parents 51e1f03 + 3029d43 commit 609015c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/CategoryList.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ const mapStateToProps = (state, ownProps) => {
4747
connectors: getRegistryKonnectorsByCategory(
4848
state.registry,
4949
filter !== 'all' && filter
50-
)
50+
).sort((a, b) => {
51+
return a.name < b.name ? -1 : a.name > b.name ? 1 : 0
52+
})
5153
}
5254
}
5355

0 commit comments

Comments
 (0)