$(document).ready(function() {
    $.fn.dataTableExt.oSort['formatted-num-asc'] = function(x,y){
        x = x.replace(/[^\d\-\.\/]/g,'');
        y = y.replace(/[^\d\-\.\/]/g,'');
        if(x.indexOf('/')>=0)x = eval(x);
        if(y.indexOf('/')>=0)y = eval(y);
        return x/1 - y/1;
    }
    $.fn.dataTableExt.oSort['formatted-num-desc'] = function(x,y){
        x = x.replace(/[^\d\-\.\/]/g,'');
        y = y.replace(/[^\d\-\.\/]/g,'');
        if(x.indexOf('/')>=0)x = eval(x);
        if(y.indexOf('/')>=0)y = eval(y);
        return y/1 - x/1;
    }
                   

    $('#data_table').dataTable({
        "bFilter": false,
        "bInfo": false,
        "bPaginate": false,
        "aaSorting": [[ 1, "desc" ]],
        "aoColumns": [
            null,
            { "sType": "formatted-num" },
            { "sType": "formatted-num" },
            { "sType": "formatted-num" }
        ]
    });
});

