fix sort by date