function compare(x,y) {
var x1 = Number(x.split(" ")[0]);
var y1 = Number(y.split(" ")[0]);
return ((x1 < y1) ? -1 : ((x1 > y1) ? 1 : 0));
}
jQuery.fn.dataTableExt.oSort['submissions-asc'] = function(x,y) {
var x1 = Number(x.split(" ")[0]);
var y1 = Number(y.split(" ")[0]);
return ((x1 < y1) ? -1 : ((x1 > y1) ? 1 : 0));
}
jQuery.fn.dataTableExt.oSort['submissions-desc'] = function(x,y) {
var x1 = Number(x.split(" ")[0]);
var y1 = Number(y.split(" ")[0]);
return ((x1 < y1) ? 1 : ((x1 > y1) ? -1 : 0));
} It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.