Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SFGolfer

    (@sfgolfer)

    I figured it out by using this code which changes the sort behavior on the desired columns.

    "aoColumnDefs": [ { "asSorting": [ "desc", "asc" ], "aTargets": [ 1,2,3,4,5,6 ] } ]

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    nice find! Yes, that’s the JS “Custom Command” that does this 🙂
    Good to hear that you already found it!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change default sort when clicking on header’ is closed to new replies.