jQuery.extend(jQuery.fn.dataTableExt.oSort, {
"numeric-comma-pre": function (a) {
var x = a.replace(/\s/, "");
return parseFloat(x);
},
"numeric-comma-asc": function (a, b) {
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
},
"numeric-comma-desc": function (a, b) {
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
}
});
$(document).ready(function(){
var table = $('#example').DataTable({
columnDefs: [
{type: 'numeric-comma', targets: [0], orderable: true},
{ targets: '_all', orderable: false }
],
language: {
thousands: ' '
}
});
});
https://jsfiddle.net/dpmL00wd/5/