Sort notification types in case-insensitive

pull/1358/head
Louis Lam 2 years ago
parent 8bbf55777e
commit e3a0eaf6af

@ -85,7 +85,9 @@ export default {
model: null,
processing: false,
id: null,
notificationTypes: Object.keys(NotificationFormList).sort(),
notificationTypes: Object.keys(NotificationFormList).sort((a, b) => {
return a.toLowerCase().localeCompare(b.toLowerCase());
}),
notification: {
name: "",
/** @type { null | keyof NotificationFormList } */

Loading…
Cancel
Save