//----------------------------------------------------------------------------
// Tablesorter Date Parser
//----------------------------------------------------------------------------

// add parser through the tablesorter addParser method 
$.tablesorter.addParser({ 
    // set a unique id 
    id: 'dotisoDate', 
    is: function(s) { 
        // return false so this parser is not auto detected 
        res = /^\d{1,2}[\/.]\d{1,2}[\/.]\d{4}$/.test(s);
        return res
    }, 
    format: function(s) { 
        // format your data for normalization 
        s = s.replace(/(\d{1,2})[\/\.](\d{1,2})[\/\.](\d{4})/, "$3/$2/$1");
        return $.tablesorter.formatFloat(new Date(s).getTime());
    }, 
    // set type, either numeric or text 
    type: 'numeric' 
}); 

