Reordering tasks by date and then created_at