def METHOD_NAME(self):
    if not self._dirty:
        return
    # Do any deferred processing
    sets = self._sets
    self._sets = [s for s in sets if s]
    if self._sort:
        self._sets = sorted(self._sets, key=lambda s: (-len(s), sorted(s)))
    self._dirty = False