data table sort order not working properly
data table sort order not working properly

shorted order showing like
1
11
12
13
it should be
1
2
3
4
here is script :
$('#example1').DataTable({
dom: 'Bfrtip',
bom: true,
buttons: [
'excel',
{
extend: 'pdfHtml5',
orientation: 'landscape',
pageSize: 'LEGAL'
},
'print'
],
"bPaginate": true,
"scrollX": true
});
This discussion has been closed.
Answers
Works fine here:
http://live.datatables.net/cebejome/1/edit
Is your data numbers or strings?
If strings then you may need to use the Natural sorting plugin.
Kevin
Sounds like there is non-numeric data in the column. But without a test case its impossible to say what that would be.
Allan