fix for date sorting on table