Add date to tasks and sort by date