Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/dashboard/Data/Views/Views.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import TableView from 'dashboard/TableView.react';
import tableStyles from 'dashboard/TableView.scss';
import * as ViewPreferences from 'lib/ViewPreferences';
import generatePath from 'lib/generatePath';
import stringCompare from 'lib/stringCompare';
import { ActionTypes as SchemaActionTypes } from 'lib/stores/SchemaStore';
import subscribeTo from 'lib/subscribeTo';
import { withRouter } from 'lib/withRouter';
Expand Down Expand Up @@ -541,6 +542,8 @@ class Views extends TableView {
this.setState({ editView: view, editIndex: index });
},
}));
// Sort views alphabetically like in the Browser component
categories.sort((a, b) => stringCompare(a.name, b.name));
const current = this.props.params.name || '';
return (
<CategoryList
Expand Down
Loading