]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[WebUI] Sort symbol groups in filter dropdown 5526/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 22 Jun 2025 06:15:24 +0000 (09:15 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 22 Jun 2025 06:15:24 +0000 (09:15 +0300)
Sort symbol groups in the Symbols table dropdown filter in a
case-insensitive manner, ensuring alphabetical A–Z ordering
regardless of capitalization.

interface/js/app/symbols.js

index 3ff5d5a4b8c81586c62f78e2ade0f5e017adaebc..21711a1e519c9ecb78a39b18c7d2a8a2b79626fd 100644 (file)
@@ -135,6 +135,7 @@ define(["jquery", "app/common", "footable"],
                         construct: function (instance) {
                             this._super(instance);
                             [,this.groups] = items;
+                            this.groups.sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
                             this.def = "Any group";
                             this.$group = null;
                         },