Datatables sorting not working in chrome

Datatables sorting not working in chrome

solidifrysolidifry Posts: 1Questions: 1Answers: 0

Hi guys, i have facing difficulties in getting my data to be sorted in chrome. It works fine in Internet explorer but not in chrome.

I have pasted a snippets of my code below.

$('.datatable-announcementlist').each( function(index, element) {
var oTable = $(this).DataTable( {
"sDom": "<'pure-g'<'pure-u-1-4 pure-u-md-1-3'l><'pure-u-3-4 pure-u-md-2-3'<'toggle-advanced-search'>f>r><'pure-u-md-1't><'pure-g'<'pure-u-1 pure-u-md-1-1'p i>>",
"aaSorting": [], /* no initial sorting /
"order": [[ 2, "desc" ]], /
sort publication date by latest */
}
},
"aLengthMenu": [[5, 10, 20, -1], [5, 10, 20, "All"]],
"iDisplayLength": 5,
initComplete: function ()
{
var r = $('.datatable-announcementlist tfoot tr');
$('.datatable-announcementlist thead').prepend(r);
},
"responsive": true

This discussion has been closed.