feat: Sort labels on sidebar by alphabetical order (#1387)
This commit is contained in:
parent
39c2270227
commit
22683cae66
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue