orders entries first by completed_at and then by due_on