sSortDataType and aDataSort not working properly together on first sort
sSortDataType and aDataSort not working properly together on first sort
npinchot_uct
Posts: 4Questions: 0Answers: 0
Please have a look at this example:
http://live.datatables.net/exilof
I am trying to use aDataSort for column 3 to sort by column 3 and then column 1 where both are using a custom sSortDataType. If you manually sort by column 1 (and any others) before sorting by column 3, it works properly. However, if you don't sort by column 1 before sorting by column 3, column 3 sorts properly but the aDataSort of column 1 has random results (you'll need to refresh the browser window or toggle between code/render once you have sorted by column 1 manually to see the bug).
Additionally, you can try the "Sort by open then duration" link which will work properly on the first try every time.
Am I doing something wrong? Do columns that make use of sSortDataType need to be "seeded" in some manner?
Thanks.
http://live.datatables.net/exilof
I am trying to use aDataSort for column 3 to sort by column 3 and then column 1 where both are using a custom sSortDataType. If you manually sort by column 1 (and any others) before sorting by column 3, it works properly. However, if you don't sort by column 1 before sorting by column 3, column 3 sorts properly but the aDataSort of column 1 has random results (you'll need to refresh the browser window or toggle between code/render once you have sorted by column 1 manually to see the bug).
Additionally, you can try the "Sort by open then duration" link which will work properly on the first try every time.
Am I doing something wrong? Do columns that make use of sSortDataType need to be "seeded" in some manner?
Thanks.
This discussion has been closed.
Replies