Give this custom parser a shot

$.tablesorter.addParser({
                    id: 'DD-MMM-YY',
                    is: function(s) {
                        return false;
                    },
                    format: function(s) {
                        s = '' + s; //Make sure it's a string
                        var hit = s.match(/(\d{1,2})\.(\d{1,2}).
(\d{4})/);
                        if (hit && hit.length == 4) {
                            return hit[3] + hit[2] + hit[1];
                        }
                        else {
                            return s;
                        }
                    },
                    type: 'text'
                });

                //Wire up this custom parser to needed column
                $("#myTable").tablesorter({
                    headers: {
                        6: {
                            sorter: 'dd.mm.yyyy
                        }
                    }
                });

            });

Reply via email to