changes for sort by date