]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix "Avg. time" column sorting 5012/head
authormoisseev <moiseev@mezonplus.ru>
Mon, 10 Jun 2024 16:36:25 +0000 (19:36 +0300)
committermoisseev <moiseev@mezonplus.ru>
Mon, 10 Jun 2024 16:36:25 +0000 (19:36 +0300)
for Symbols tab

interface/js/app/symbols.js

index aa1403101161d3948024d7678b6e24a947e1e60d..a720a696daa83a839d3df9ea5a1937756b2a5840 100644 (file)
@@ -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: {