Sorting after search doesn't work

Sorting after search doesn't work

mtichymtichy Posts: 2Questions: 2Answers: 0

Hi. Please help me with this problem.

I use columnDefs on the first column:
"columnDefs": [
{"type": "numeric-comma", "searchable": true, "orderable": true, targets: [0]}
],

It works ok. I can sort or filter (search) on this column:
table.column(0).search("search string",true,false).draw();

Returned only rows with "search string". Still ok.

But now, I can't sorting on this column. What's wrong? Sorting on the other columns works fine. Except this one filtered column.

If I don't use columnDefs, sorting works after searching, but not correctly (1 Sep 2015, 10 Sep 2015, 3 Sep 2015, ...)

This discussion has been closed.