Sortable Table Update 1

It’s been almost a whole year since we last posted any real updates to WebFX. I finally got together and polished Sortable Table 1.1. I hope this update makes a few people satisfied because it makes it very easy to add custom sort types.

function parseUsDate( s )
{
   var parts = s.split( "/" );
   var d = new Date( 0 );
   d.setYear( parts[2] );
   d.setMonth( parts[0] - 1 );
   d.setDate( parts[1] );
   return d.valueOf();
}

SortableTable.prototype.addSortType( "UsDate", parseUsDate );

Place that in an external JS file and you can now sort by the very confusing US date format in your sortable tables.