Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Due to a small issue in the DataTables JS library, the iDataSort (or orderData) parameter also has to be written as an array. Therefore please try again with

    "columnDefs": [ { "visible": false, "targets": [ 2 ] }, { "orderData": [ 2 ], "targets": [ 3 ] } ]

    (This is also the modern form of the command, but that doesn’t really matter here.)

    Then, you should not need the DataTables Sorting Plugins Extension for this table, so unless you are using it in another table, I suggest to turn that off.

    Regards,
    Tobias

    Thread Starter D1

    (@d1)

    Hi,

    The new code new code worked. I also turned off the DataTables Sorting Plugins Extension, thanks for letting me know.

    Regards

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sorting work-around not sorting’ is closed to new replies.