Changing Sort Order doesn't change visual indicator
Changing Sort Order doesn't change visual indicator
getalex
Posts: 39Questions: 11Answers: 1
I wanted to have the table render items by descending order in a particular column, but doing so doesn't change the arrow visual indicator in the header as it does with the click event. If this is a bug, any workarounds?
$(document).ready( function () {
var table = $('#example').DataTable({
order: [0, 'dsc']});
} );
This discussion has been closed.
Answers
seems I answered my own question: it needs to say "desc" instead of "dsc" even though both keywords work!