fix items sorting
fix items sorting when date is the same