• Resolved chriscob

    (@chriscob)


    I’m trying to do something very simple with the extension that I just downloaded (and fully intend to pay for if I can make it work).

    Here is the page:

    https://slowtraveltours.com/test-sort/

    and here is the shortcode I entered following the instructions for the extension.

    [table id=7 row_order=”sort” row_order_sort_column=”A” row_order_sort_direction=”ASC”/]

    All I want is the table sorted in ascending order of the dates in the first column.

    What am I doing wrong?

    https://www.ads-software.com/plugins/tablepress/

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.

    The problem here is that the TablePress Row Order Extension can only sort strings, but not dates. I therefore suggest a different way here: We could instruct the DataTables JS library to perform an initial sorting when the page is loaded. For that, please try adding this to the “Custom Commands” textfield on the “Edit” screen of the table:

    "order": [[ 0, 'asc' ]]

    This will sort the first column (as counting in that code starts with 0).

    Regards,
    Tobias

    Thread Starter chriscob

    (@chriscob)

    Thank you! I’ll de-activate and uninstall that plugin (until I find another reason I need it ?? )

    I appreciate the quick response.

    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 ‘Table Row Order extension — can't seem to make it work’ is closed to new replies.