From: moisseev Date: Mon, 8 Jul 2019 18:29:00 +0000 (+0300) Subject: [WebUI] Fix sorting errors by date X-Git-Tag: 2.0~610^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f8a4984ff763a8cab84d2845e6b2d6a7716014de;p=rspamd.git [WebUI] Fix sorting errors by date #2965 --- diff --git a/interface/js/app/history.js b/interface/js/app/history.js index d6e96f3e4..a3a1d813f 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -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);