From d76564979e9ac10f59a8f23e68fccc1bb0bcca90 Mon Sep 17 00:00:00 2001 From: moisseev Date: Sun, 31 Dec 2023 19:04:09 +0300 Subject: [PATCH] [WebUI] Normalize IPv4 for column sorting --- interface/js/app/libft.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- 2.39.5