def setIncludeParentsWhenFiltering(self, includeParentsWhenFiltering):
        self._includeParentsWhenFiltering = includeParentsWhenFiltering
        if self._filteredRoots is not None:
            # Currently filtered so needs to be re-filtered
            self.doFilterContainer(True)
Sets the ordered attribute to the boolean value
dataset/ETHPy150Open rwl/muntjac/muntjac/data/util/hierarchical_container.py/HierarchicalContainer.setIncludeParentsWhenFiltering--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical._set_ordered