how to use order in server processing

how to use order in server processing

jemzjemz Posts: 131Questions: 40Answers: 1

HI i just want to ask how can I declare this parameter in datatables

order[i][dir]

I am confuse,I tried this but I get error

   $('#example').dataTable( {
                        "processing": true,
                        "serverSide": true,
                         "ajax":{
                            url:"querydata4.php"

                        },order[
                              {0,"desc"} //0 for my column id.I want it to display in desc order
                       ]

 });


Thank you in advance

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.