How to sort date as date and not string
How to sort date as date and not string

in Editor
I've read the following threads in the forum but they are not working. I would like to sort my date as dates, they're currently getting sorted as string (treated as string) so 01-01-2022 comes before 10-01-2021 which we know is wrong. The following solutions suggested below were of no help.
https://datatables.net/forums/discussion/45692/how-to-date-sort-as-date-instead-of-string
https://datatables.net/forums/discussion/53146/format-datetime-in-the-editor-form
This discussion has been closed.
Answers
Use the solution presented in this date sorting blog.
Kevin