• Resolved Marcus

    (@marcuss)


    Hallo!

    Wie stelle ich es an, das eine Tabelle nach korrekt nach Datum sortiert wird bzw. werden kann?

    Ich habe zwar folgenden eigenen Befehl hinzugefügt, aber damit l?sst sich die Tabelle dann nicht mehr z. B. nach Ort sortieren:

    How do I set a table to sort by date correctly?

    Although I have added the following own command, but then the table can not be z. B. sort by location:

    { “sType”: “date-eu”, “aTargets”: [ 3, 1 ] } ], “aaSorting”: [[0, ‘asc’]]

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    To make this work, please download, install, and activate the TablePress Extension from https://tablepress.org/extensions/datatables-sorting-plugins/
    Then, please try this “Custom Command” (“Eigene Befehle”):

    "columnDefs": [ { "type": "date-eu", "targets": [ 2 ] } ]
    

    This will turn on European date sorting for the third column. (Counting starts with 0 in this code.)

    Regards,
    Tobias

    Thread Starter Marcus

    (@marcuss)

    I have now uploaded the plugin and activated and also entered the command.

    Unfortunately, I can not sort the column with the dates anymore (neither asc nor desc)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the problem could be coming from the last rows of the table, which are empty. Could you please delete those and check again?

    Regards,
    Tobias

    Thread Starter Marcus

    (@marcuss)

    Thanks so lot, it works

    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 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sortierung nach Datum / sort by date’ is closed to new replies.