• Resolved pmonstad

    (@pmonstad)


    Sorting columns by date does not work. I have a test site running 2.0 RC1 but getting the sort by date working is not possible. I have installed the required plugin and it is activated (TablePress Extension: DataTables Sorting plugins).

    I have put the following command in table setting:
    “columnDefs”: [ { “type”: “date-eu”, “targets”: [ 3 ] } ]

    No success. Any idea?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Due to how the columns are counted in this code (counting starts with 0), for the third column, you’ll have to use a 2 in the targets parameter of this code. Can you please try that?

    Regards,
    Tobias

    Thread Starter pmonstad

    (@pmonstad)

    Thanks! My fault not discovering this.

    Plugin Author TobiasBg

    (@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 ‘sorting columns by date not working’ is closed to new replies.