Sort number default by ASC

Sort number default by ASC

sangamwadgesangamwadge Posts: 2Questions: 0Answers: 0

I use this code for datatable but number will not sort proper. for ex. my number is - 1,22,3,568., But it's datatype is varchar this will sort by only considering first digit . pls help me

var oTable=$(".datatableNew").dataTable({"bDestroy": true,
"bProcessing": true,
"bAutoWidth": false,
"sPaginationType": "bootstrap",
"columnDefs": [

{ "sType": "numeric", "targets": 0 }
 ]

});

Replies

This discussion has been closed.