Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82109

Bug: Sort number column, and sType

$
0
0
I'm sorting my columns and my numeric column gets sorted by first digit like so

1
12
130
2
21
22
3
4
5

So i thought to try the aoColumns "sType" and set the column to be numeric. This worked for the default sort, but with that option set when I click the sort arrow it doesn't do anything. Any column I specify with "aoColumns" breaks sorting for that specific column. It didn't matter if it was Date, or numeric if I set the aoColumn sorting breaks for that specified column.

Thanks for any help

I have same problem with 1.4.3 and 1.5beta7.

Thanks for any help.

My example settings:

$(document).ready(function() { $('#table1').dataTable({
"aaSorting": [[ 0, "desc" ]],
"bPaginate": true,
"bFilter": true,
"iDisplayLength": 50,
"aoColumns": [
{ "sType": 'numeric' },
null,
{ "sType": 'date' },
{ "sType": 'numeric' },
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
]
});} );

Viewing all articles
Browse latest Browse all 82109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>