Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
I am using mysql, so I do not sort other than
ORDER BY table.value DESC
at end of the setup query for
->pipe($this->dataStore("result"));
I was expecting datatables would also me to sort by each column and column type, but I guess we must tell datatables what type of data each column is. That is what I am asking how to do.
Got it. For reference to anyone who needs...
Example below declaring the the 3rd column as type date and 8th column as type number.
"columnDefs"=>array(
array(
"targets"=>array(2),
"visible"=>true,
"type"=>date,
),
array(
"targets"=>array(7),
"visible"=>true,
"type"=>num,
),
),
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo