]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix sorting errors by date 2967/head
authormoisseev <moiseev@mezonplus.ru>
Mon, 8 Jul 2019 18:29:00 +0000 (21:29 +0300)
committermoisseev <moiseev@mezonplus.ru>
Mon, 8 Jul 2019 18:29:47 +0000 (21:29 +0300)
#2965

interface/js/app/history.js

index d6e96f3e4a3e10be02889c1f52494a42ab01db56..a3a1d813fbfbbe55ccb5f471731483fa35b7365e 100644 (file)
@@ -827,7 +827,12 @@ define(["jquery", "footable", "humanize"],
                         });
                     var rows = [].concat.apply([], neighbours_data);
                     $.each(rows, function (i, item) {
-                        item.ts = unix_time_format(item.ts);
+                        item.ts = {
+                            value: unix_time_format(item.ts),
+                            options: {
+                                sortValue: item.ts
+                            }
+                        };
                     });
                     if (Object.prototype.hasOwnProperty.call(tables, "errors")) {
                         tables.errors.rows.load(rows);