def init_submodule_groups(self):
        """
        Initialize the L{submodule_groups} attribute, based on the
        L{submodules} and L{group_specs} attributes.
        """
        if (None, UNKNOWN) in self.submodules:
            return
        self.submodules = sorted(self.submodules,
                                 key=lambda m:m.canonical_name)
        elts = [(m.canonical_name[-1], m) for m in self.submodules]
        self.submodule_groups = self._init_grouping(elts)
dataset/ETHPy150Open ardekantur/pyglet/tools/epydoc/epydoc/apidoc.py/ModuleDoc.init_submodule_groups/swapped operands of `in`