• Resolved mbades

    (@mbades)


    Hello, I’m trying to build a medal with the tablepress plugin.

    I managed to sort the rows based on the maximum column value 1. The problem is I can not combine the columns by trying to create a ranking on 3 columns.

    example.

    Team1 = 1 gold – 0 silver – 0 bronze (FIRST POSITION)
    Team2 = 0 gold – 1 silver – 0 bronze (SECOND POSITION)
    Team3 = 0 gold – 0 silver – 1 bronze (THIRD POSITION)

    The code that i use:

    [table id=1 row_order=sort row_order_sort_column=B row_order_sort_direction=DESC responsive=”scroll” responsive_breakpoint=”phone” /]

    I would also like to combine columns C and D over B.
    My goal is to show the nations that have taken more medals, starting from gold and finishing bronze.

    Any help is welcome.

    • This topic was modified 7 years, 6 months ago by mbades.

    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.

    Unfortunately, it’s not possible to sort multiple columns with the Row Order Extension ??

    You could instead maybe use the sorting that the DataTables JS library offers. For that, you could e.g. use a “Custom Command” like

    "order": [[ 1, 'desc' ], [ 2, 'desc' ], [ 3, 'desc' ]]
    

    on the “Edit” screen of the table.

    This will sort the table for the second, third, and fourth column, in descending order (counting the columns starts with 0 in this code).

    Regards,
    Tobias

    Thread Starter mbades

    (@mbades)

    wow,

    this work!

    thanks tobias

    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 ‘row order with more column’ is closed to new replies.