OonealbsSep 11, 2017
How would I get the data table on this page to show initial sort by date rather than alphabetical?
1 reply · opened Sep 11, 2017
How would I get the data table on this page to show initial sort by date rather than alphabetical?
Hello,
Consider using the following code:
jQuery(document).ready(function() {
jQuery('#datatable1').dataTable({
"order": [[ 3, 'asc' ]]
});
});
Additionally, you will need to change the Column Number according to your needs starting from 0.
This will definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard