commit dd0c5d2: [WebUI] Fix "Avg. time" column sorting

moisseev moiseev at mezonplus.ru
Mon Jul 29 17:57:57 UTC 2024


Author: moisseev
Date: 2024-06-10 19:36:25 +0300
URL: https://github.com/rspamd/rspamd/commit/dd0c5d2484ff12767e41b011298324b5939a89d8 (refs/pull/5012/head)

[WebUI] Fix "Avg. time" column sorting
for Symbols tab

---
 interface/js/app/symbols.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js
index aa1403101..a720a696d 100644
--- a/interface/js/app/symbols.js
+++ b/interface/js/app/symbols.js
@@ -197,7 +197,10 @@ define(["jquery", "app/common", "footable"],
                                 title: "Frequency",
                                 breakpoints: "md",
                                 sortValue: function (value) { return Number(value).toFixed(2); }},
-                            {name: "time", title: "Avg. time", breakpoints: "md"},
+                            {name: "time",
+                                title: "Avg. time",
+                                breakpoints: "md",
+                                sortValue: function (value) { return parseFloat(value); }},
                         ],
                         rows: items[0],
                         paging: {


More information about the Commits mailing list