Yes but it may be better to change your separator.

I haven't tested this but it should work...

$.tablesorter.addParser({
  id: "dotDate",
  is: function(s) {
    return /\d{1,2}\.\d{1,2}\.\d{2,4}/.test(s);
  },
  format: function(s,table) {
    s = s.replace(/(\d{1,2})\.(\d{1,2})\.(\d{2,4})/, "$1/$2/$3");
    return $.tablesorter.formatFloat(new Date(s).getTime());
  },
  type: "numeric"
});

stephen


On Wed, Nov 5, 2008 at 11:53, Josip Lazic <[EMAIL PROTECTED]> wrote:

>
> Is it possible to sort column with dates in dd.mm.yyyy format?
>
>

Reply via email to