diff --git a/app/javascript/dashboard/store/modules/labels.js b/app/javascript/dashboard/store/modules/labels.js index 4597ec947..4183c28ed 100644 --- a/app/javascript/dashboard/store/modules/labels.js +++ b/app/javascript/dashboard/store/modules/labels.js @@ -20,7 +20,9 @@ export const getters = { return _state.uiFlags; }, getLabelsOnSidebar(_state) { - return _state.records.filter(record => record.show_on_sidebar); + return _state.records + .filter(record => record.show_on_sidebar) + .sort((a, b) => a.title.localeCompare(b.title)); }, };