From: Alexander Moisseev Date: Sun, 22 Jun 2025 06:15:24 +0000 (+0300) Subject: [WebUI] Sort symbol groups in filter dropdown X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5526%2Fhead;p=thirdparty%2Frspamd.git [WebUI] Sort symbol groups in filter dropdown Sort symbol groups in the Symbols table dropdown filter in a case-insensitive manner, ensuring alphabetical A–Z ordering regardless of capitalization. --- diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index 3ff5d5a4b8..21711a1e51 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -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; },