Browse Source

Merge pull request #4766 from moisseev/webui

[WebUI] Normalize IPv4 for column sorting
tags/3.8.0
Vsevolod Stakhov 5 months ago
parent
commit
ecd96adf48
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      interface/js/app/libft.js

+ 3
- 1
interface/js/app/libft.js View File

@@ -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",

Loading…
Cancel
Save