Posted this code:
http://paste.pocoo.org/show/86103/

on an earlier exact post like this:

$.tablesorter.addParser({
                    id: 'dd.mm.yyyy',
                    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'
                });




and don't forget, you have to wire up the custom sorter in the options
of the .tablesorter() wire up








On Nov 5, 2:53 pm, Josip Lazic <[EMAIL PROTECTED]> wrote:
> Is it possible to sort column with dates in dd.mm.yyyy format?

Reply via email to