aaSorting different with different column type

aaSorting different with different column type

AzaretAzaret Posts: 17Questions: 2Answers: 0
edited January 2013 in DataTables 1.9
Hi,

I'm not sure about how to do that, and didn't found much on google.
My datatables are always by default sorted on the first column, but I would that if it's a date column, that the sort is descending else is ascending.

How I could do this ?
Thanks for your help.

Replies

  • GregPGregP Posts: 487Questions: 8Answers: 0
    edited January 2013
    Is the table dynamic? In other words, are you sometimes unaware that it's going to be a date column? If you are calling .dataTable() on a table that you KNOW will have date in it, I would just use the aaSorting parameter to set it.
This discussion has been closed.