Wrong column sorting
Wrong column sorting

Hi,
I have a column with integers, but datatables sorts it in a wrong order.
Debug:
https://debug.datatables.net/ukoqop
Client code below:
DataTable({
processing: true,
serverSide: true,
stateSave: false,
stateDuration: -1,
pagingType: 'full_numbers',
renderer: 'bootstrap',
tabIndex: 1,
ajax: {
url: 'some_url',
type: 'get',
},
columns: [
{data: 'id', type: 'num', name: 'article_rating.id'},
{data: 'name', name: 'name', type: 'string', searchable: true},
],
order: [[0, "desc"]],
pageLength: 100,
searchDelay: 1000
});
Please, help!
This discussion has been closed.
Answers
Anybody...
You have server-side processing enabled, so the sorting will be done by your
some_url
script. That's where to look if the ordering is wrong in this case. Is that a custom script? Have you implemented the requirements for server-side processing?Allan