Skip to content

Commit fdb2630

Browse files
committed
Sort catalogs by name by default
1 parent 26e5fd9 commit fdb2630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/catalog/CatalogListPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CatalogListPage extends React.Component {
2828
componentDidMount() {
2929
CatalogApi.getAllCatalogs()
3030
.then((catalogs) => {
31-
this.setState({catalogs: catalogs.data});
31+
this.setState({catalogs: catalogs.data.sort(sortByName)});
3232
})
3333
.catch((err) => {
3434
notification.error({

0 commit comments

Comments
 (0)