• Resolved kogemi

    (@kogemi)


    Hi Tobias,

    Please I created a table with some caculated columns.
    Through the plugin “tablepress-table-row-order” and his shortcode “row_order=sort row_order_sort_column=D row_order_sort_direction=DESC”; sorting works well on any column filled by me except on the calculated columns

    Please I need help

    Thanks.

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    That’s strange. The Row Order Extension actually sorts after formulas are evaluated. Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter kogemi

    (@kogemi)

    Hi,

    I am very sorry because I forgot to mention that the sorting is on columns filled through shortcodes

    Thanks

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, ok. Unfortunately, you can’t really use the Table Row Order Extension then, as it sorts before the Shortcodes are evaluated. You could try using the DataTables JS library for the sorting, instead, by adding this to the “Custom Commands” text field on the table’s “Edit” screen:

    "order": [ [ 3, "desc" ] ]
    

    Regards,
    Tobias

    Thread Starter kogemi

    (@kogemi)

    Hi,

    Thank you very much
    It works
    But I don’t know if I still need to use the Extension “Table Row Order Extension 1.2” with his code “row_order=sort row_order_sort_column=D row_order_sort_direction=DESC” to have sorting with this new command.

    Thanks

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Good to hear that this works!

    No, you don’t need the Extension for the Shortcode parameters anymore 🙂

    Regards,
    Tobias

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

The topic ‘sorting on the calculated columns’ is closed to new replies.