date column order in google chrome
date column order in google chrome
Hey,
i have problems to sort a date column correctly. Is i run the following code in IE and firefox it works fine, but in google chrome (version 9.0.597.98) it's not sorted correctly.
[code]
oTable = $('#example').dataTable( {
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bAutoWidth": false,
"aoColumns": [
{ "sType": "date" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "bSortable": false },
{ "bVisible": false,
"bSearchable": false }
]
});
[/code]
I use the german date format for the date column - e.g. 27.11.2010 28.12.2010 19.01.2011 09.02.2011 aso.
I'm running jQuery 1.5 and datatables 1.7.5.
Any idea whats wrong ?
Thanks in advance
Thomas
i have problems to sort a date column correctly. Is i run the following code in IE and firefox it works fine, but in google chrome (version 9.0.597.98) it's not sorted correctly.
[code]
oTable = $('#example').dataTable( {
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bAutoWidth": false,
"aoColumns": [
{ "sType": "date" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "sType": "numeric" },
{ "bSortable": false },
{ "bVisible": false,
"bSearchable": false }
]
});
[/code]
I use the german date format for the date column - e.g. 27.11.2010 28.12.2010 19.01.2011 09.02.2011 aso.
I'm running jQuery 1.5 and datatables 1.7.5.
Any idea whats wrong ?
Thanks in advance
Thomas
This discussion has been closed.
Replies
[code]
$(document).ready(function(){
$('.dataTable').dataTable( {
"bPaginate": false,
"bLengthChange": false,
"bAutoWidth": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"aoColumns": [
null,
null,
null,
null,
{"sType": "uk_date"},
null
]
} );
});
[/code]
Hope something equivalent to that works for you.