Sorting date with Angular 6/Typescript
Sorting date with Angular 6/Typescript

I'm using the datatable component with Angular 6/Typescript. I'm having problems in sorting date in 'dd-MM-yyyy' format (pe the date '04-01-2019' it's showed before '15-12-2018' in the ascendant sorting).
In the documentation I saw that it's possible to specify the moment in two possible ways:
$.fn.dataTable.moment('dd/MM/YYYY');
$.fn.dataTable.moment('L');
but that is the jQuery version of the datatable. The question is if there is this possibility in Typescript version, too.
Thanks in advance for the answer
This discussion has been closed.
Answers
Hi @TheHawk ,
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin