From e3a0eaf6af3e038d2d0f295ed770e60100ba9f53 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Fri, 4 Mar 2022 21:48:35 +0800 Subject: [PATCH] Sort notification types in case-insensitive --- src/components/NotificationDialog.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index ce5d8057..034e1149 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -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 } */