Changing Sort Order doesn't change visual indicator

Changing Sort Order doesn't change visual indicator

getalexgetalex Posts: 39Questions: 11Answers: 1
edited July 2018 in DataTables 1.10

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']});
} );

Example: http://live.datatables.net/wahazuri/1/

Answers

  • getalexgetalex Posts: 39Questions: 11Answers: 1

    seems I answered my own question: it needs to say "desc" instead of "dsc" even though both keywords work!

This discussion has been closed.