Sort Column with date-eu-pre

Sort Column with date-eu-pre

hinogihinogi Posts: 4Questions: 0Answers: 0
edited March 2014 in Plug-ins
I'm currently trying to sort a date column with EU dates. I added the plugin to my code, but it only sorts by day and doesn't seem to use the return value of the plugin. I also ran the debugger if further info is needed.
[code]
var table = $("#example").dataTable({
"aaSorting": [[4, "desc"]],
"aoColumns": [
null,
null,
null,
null,
{"sType": "date-eu-pre"},
null
]
});
[/code]
http://debug.datatables.net/eridiv

Replies

  • hinogihinogi Posts: 4Questions: 0Answers: 0
    Here is the example for this kind of behaviour.

    http://live.datatables.net/ruficoj/2/edit
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    > "sType": "date-eu-pre"

    Drop the `-pre` - that is an identifier for DataTables.

    http://live.datatables.net/ruficoj/4/edit

    Allan
  • hinogihinogi Posts: 4Questions: 0Answers: 0
    Thank you, that seems to fix it.
This discussion has been closed.