Correct the sorting to use a date that is sortable