add sort_by_due_date method