How to specify the column that is being sorte by date?

How to specify the column that is being sorte by date?

felixletkemannfelixletkemann Posts: 2Questions: 1Answers: 0

I tried using the plugin mentioned here: https://datatables.net/blog/2014-12-18

Unfortunately I have no idea how to specify the column that must be sorted by date and its not mentioned in the text.
Of course I included both files moment.min.js and datetime-moment.js to my project. Also I pasted the line
$.fn.dataTable.moment('dd.mm.YYYY');
just before initializing my DataTable.
Any ideas how to fix this?

Answers

  • felixletkemannfelixletkemann Posts: 2Questions: 1Answers: 0
    jQuery(document).ready(function($) {
    
        $.fn.dataTable.moment('dd.mm.YYYY');
    
        $('.datatable').DataTable({
            "retrieve": true,
            "bLengthChange": false,
            "autoWidth": true,
            .....
            ......
    
    
This discussion has been closed.