How to sort date (23-May-2015 format )

How to sort date (23-May-2015 format )

shailendrasveltozshailendrasveltoz Posts: 2Questions: 1Answers: 0

I have to sort this type of column from datatable.But not working as i used "order":[[o,"DESC"]]
Please give me solution

Answers

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394
    "order":[[o,"DESC"]]
    

    Is that meant to represent column zero? It looks like a letter 'o' to me.

  • allanallan Posts: 61,823Questions: 1Answers: 10,129 Site admin
    edited July 2015

    It should be:

    "order":[[o,"desc"]]
    

    The case is important! There should really be an error reported in your browser console if you use anything else (assuming you are using client-side processing of course - impossible to say without a test case, which is required in the forum rules).

    Allan

  • shailendrasveltozshailendrasveltoz Posts: 2Questions: 1Answers: 0

    I tried it but its not working

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    Allan replied:

    ....impossible to say without a test case, which is required in the forum rules.

This discussion has been closed.