From: moisseev Date: Sun, 31 Dec 2023 16:04:09 +0000 (+0300) Subject: [WebUI] Normalize IPv4 for column sorting X-Git-Tag: 3.8.0~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4766%2Fhead;p=rspamd.git [WebUI] Normalize IPv4 for column sorting --- diff --git a/interface/js/app/libft.js b/interface/js/app/libft.js index 463ddec16..c69f74d2b 100644 --- a/interface/js/app/libft.js +++ b/interface/js/app/libft.js @@ -69,7 +69,9 @@ define(["jquery", "app/common", "footable"], style: { "minWidth": "calc(7.6em + 8px)", "word-break": "break-all" - } + }, + // Normalize IPv4 + sortValue: (ip) => ((typeof ip === "string") ? ip.split(".").map((x) => x.padStart(3, "0")).join("") : "0") }, { name: "sender_mime", title: "[Envelope From] From",