File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import TableView from 'dashboard/TableView.react';
15
15
import tableStyles from 'dashboard/TableView.scss' ;
16
16
import * as ViewPreferences from 'lib/ViewPreferences' ;
17
17
import generatePath from 'lib/generatePath' ;
18
+ import stringCompare from 'lib/stringCompare' ;
18
19
import { ActionTypes as SchemaActionTypes } from 'lib/stores/SchemaStore' ;
19
20
import subscribeTo from 'lib/subscribeTo' ;
20
21
import { withRouter } from 'lib/withRouter' ;
@@ -541,6 +542,8 @@ class Views extends TableView {
541
542
this . setState ( { editView : view , editIndex : index } ) ;
542
543
} ,
543
544
} ) ) ;
545
+ // Sort views alphabetically like in the Browser component
546
+ categories . sort ( ( a , b ) => stringCompare ( a . name , b . name ) ) ;
544
547
const current = this . props . params . name || '' ;
545
548
return (
546
549
< CategoryList
You can’t perform that action at this time.
0 commit comments