Ordering/Sorting on First column (0) not working
Ordering/Sorting on First column (0) not working
Hi,
I am using server-side processing and everything works as expected.
I have columns with very different data types, such as: phone number, address, other strings, whatever
I am expierencing a strange behaviour, which is:
SORTING/ORDERING doesnt work on the first column.
EVERY other column works, no matter the data.
First, I thought it's because of the strange string data in colum 0.
But then i flipped column 0 with column 1 and it proofed that the "strange data" works great in column 1.
In short: It doesnt matter what kind of data I have in column 0, it just won't work.
Any ideas? Thanks!
Answers
Since you have server side processing enabled the sorting takes place in your server script. Start by debugging what your server script is doing with column 0.
Are you using a Datatables supplied server side processing script?
Make sure you haven't set
columns.orderable
false for column 0.Kevin