the following is my column definition for a last updated data field coming from the server:
$('#table').DataTable({
"columns": [{
"searchable": true,
"data": "last_updated",
"type": "date",
"render": function (data, type, row, meta) {
return "<a target=\"_blank\" href=\"/history/" + data.id + "\">" + timeDiff(new
Date(data.updated)) + "</a>"
}
}]
})
After the table data loads, the sorting occurs on the rendered value, but I want the sorting to occur on data.updated. How can I achieve this?