Quantcast
Viewing all articles
Browse latest Browse all 82127

sSortDataType and aDataSort not working properly together on first sort

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.

Viewing all articles
Browse latest Browse all 82127

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>