datetime sorting is not working , I have an array of datetimes , I explode it and echo 'end($arrayExploded)' to get the last array.
That's what is printed
https://i.stack.imgur.com/JVmet.png
the date format is day/month/year
but order asc is not working , it should be 06/05/2019 the first date to show.
I've tried to use order asc , didn't work. I've tried to use date-euro plugin for datatable , but didn't work either.
$(document).ready( function () {
$('#table_id').DataTable({
"order":[[5,"asc"]] ,
"pageLength": 10,
"bJQueryUI": true,
"oLanguage": {
"sProcessing": "Processando...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sZeroRecords": "Não foram encontrados resultados",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros",
"sInfoEmpty": "Mostrando de 0 até 0 de 0 registros",
"sInfoFiltered": "",
"sInfoPostFix": "",
"sSearch": "Buscar:",
"sUrl": "",
"oPaginate": {
"sFirst": "Primeiro",
"sPrevious": "Anterior",
"sNext": "Seguinte",
"sLast": "Último",
}
}
} );
});
</script> ```