Fixed date sorting on tables