• Resolved julien.capron

    (@juliencapron)


    Hello Tobias, thank you for this great plugin. I can’t find a step-by-step tutorial on: now to let the readers sort a date column by EU date format (dd/mm/yyyy). Sorry for even asking!

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.

    For this, please see https://tablepress.org/extensions/datatables-sorting-plugins/

    Regards,
    Tobias

    Thread Starter julien.capron

    (@juliencapron)

    Hi Tobias. Thanks a lot for your reply. But I could not make it work I’m afraid.

    – I have installed and activated: TablePress Extension: DataTables Sorting plugins
    – I added dates to first column in this format: 15/01/2022 e.g.
    – I added this to custom commands: “columnDefs”: [ { “type”: “eu-date”, “targets”: [ 1 ] } ]

    But it’s still not sorted correctly. Do you have a club about it?

    EDIT: No, it works, I’m sorry for the trouble! I left an empty row and it caused it not to work. Thanks a lot!

    • This reply was modified 2 years, 11 months ago by julien.capron.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    hhm, the value in the "targets" part would have to be set to 0 if the date is in the first column. 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sorting rows by EU date?’ is closed to new replies.