feat: Sort labels on sidebar by alphabetical order (#1387)

This commit is contained in:
Sivin Varghese 2020-11-07 12:21:34 +05:30 committed by GitHub
parent 39c2270227
commit 22683cae66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
},
};