[WebUI] Fix sorting errors by date

#2965
This commit is contained in:
moisseev 2019-07-08 21:29:00 +03:00
parent c9aa615d7d
commit f8a4984ff7

View 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);