Fix bug in org date sorting.