Rename function.
Sort past and future tasks by due date.