add sortBy for dates