How to set sorting priority in datatable columns ?

How to set sorting priority in datatable columns ?

Dibyadeep_MukherjeeDibyadeep_Mukherjee Posts: 6Questions: 4Answers: 0

Hello Team,

I have a question, which does not need much explanation. I have a table with 3 columns say Start_Date ,End_Date and Order_Number.

By default my table rows are sorted with End_Date (Desc) . Now what i want is if for multiple rows the End_Date is same, it must order the rows on basis of Order_Number desc.

Is it possible with datatable?

Thanks in advance.

Thanks & Regards
Dibyadeep.

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    Yes, DataTables supports multi-column sorting. Use columns.orderData to do this.

    Allan

This discussion has been closed.