From 6ad21dfda9c9d48b9b25f1ae5b8284577a0fea42 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sat, 26 Jul 2025 13:40:45 +0200 Subject: [PATCH] Update Views.react.js --- src/dashboard/Data/Views/Views.react.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dashboard/Data/Views/Views.react.js b/src/dashboard/Data/Views/Views.react.js index eacf5c633..fe47771eb 100644 --- a/src/dashboard/Data/Views/Views.react.js +++ b/src/dashboard/Data/Views/Views.react.js @@ -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'; @@ -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 (