My ultimate datetime sorting sorts only on days

My ultimate datetime sorting sorts only on days

weshalorsweshalors Posts: 0Questions: 1Answers: 0
edited September 2017 in Free community support

Hi,

After a long research, here is come my first time asking you a question.
I'm using datetime-moment plugin to try to sort some columns of my datatables.
Here is some of my code
JS

<script src="{{ asset('js/jquery-ui.js') }}"></script>
<script src="{{ asset('js/plugins/datatables/jquery.dataTables.js') }}"></script>
<link rel="stylesheet" type="text/css" href="{{ asset('js/plugins/datatables/dataTables.bootstrap.css') }}">
<script src="{{ asset('js/plugins/datatables/plugins/moment.js') }}"></script>
<script src="{{ asset('js/plugins/datatables/plugins/datetime-moment.js') }}"></script>
$.fn.dataTable.moment( 'DD-MM-YYYY' );
$('#avancement').DataTable( {
       "language": {
             "emptyTable":   "Aucune donnée disponible.",
             "search"    :   "Rechercher: "
          },
        ordering: true,
        "paging" : false,
        "info": false,
        "columnDefs": [
            {  type : "datetime-moment", targets:  "sort-date" },
            {  "targets": [0, 6,13], "orderable": false }
        ]
     } );

The format I'm using on my table is DD/MM/YYYY
It is sorting...however it is sorting only on day dalue !
that means I can have that order in my table 01/12/2018=> 03/04/2017=> 06/06/2018

Is there something I forgot in my implementation

This discussion has been closed.