Fix case date sorting.