def modify(self, sort=None, purge=False, done=None, undone=None):
        self.model.modifyInPlace(
            sort=self._getPattern(sort),
            purge=purge,
            done=self._getDone(done, undone)
        )