diff options
-rw-r--r-- | interface/js/app/libft.js | 4 |
1 files changed, 3 insertions, 1 deletions
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", |