commit d765649: [WebUI] Normalize IPv4 for column sorting
moisseev
moiseev at mezonplus.ru
Mon Jul 29 17:51:04 UTC 2024
Author: moisseev
Date: 2023-12-31 19:04:09 +0300
URL: https://github.com/rspamd/rspamd/commit/d76564979e9ac10f59a8f23e68fccc1bb0bcca90 (refs/pull/4766/head)
[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",
More information about the Commits
mailing list