• Resolved ipaelo

    (@ipaelo)


    Hi,

    Thank you so much for your efforts to maintain and programming this plugin.

    I need to sort a Mixed Content column, I have created a hidden column with the values that I want to be used to sort it.

    I have added this Custom Command: “columnDefs”: [ { “type”: “formatted-num”, “targets”: [ 4,5 ] },{ “visible”: false, “targets”: [ 5 ] }, { “orderData”: [ 5 ], “targets”: [ 4 ] }]

    Column 4 are mixed, 5 only numbers. I have hidden column 5 that is what order column 4.

    The problem is when I loaded for first time the website, It doesn´t read this custom command but If I sort it, It works like a charm.

    Have you got any Idea?

    Thanks in advanced.

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    From what I can see, the “Custom Command” is working just fine. I think that you are expecting something from it that it won’t do: Perform an initial sort when you load the page. For that, you would also need to append

    ,"order": [ [ 4, "asc" ] ]
    

    Regards,
    Tobias

    Thread Starter ipaelo

    (@ipaelo)

    Hi,

    Thanks for your solution. Works perfectly!

    TabblePress Rated and donations made. 🙂

    Regards,
    Ismael from Spain.

    • This reply was modified 5 years, 9 months ago by ipaelo.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!
    And thanks for the donation, I really appreciate it!

    Best wishes,
    Tobias

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

The topic ‘Sorting Mixed content’ is closed to new replies.