def sort(self):
        '''
        Sorts components of the object.
        '''
        if hasattr(self,'variables'):
            sort_items(self,self.variables)
        if hasattr(self,'modules'):
            sort_items(self,self.modules)
        if hasattr(self,'submodules'):
            sort_items(self,self.submodules)
        if hasattr(self,'common'):
            sort_items(self,self.common)
        if hasattr(self,'subroutines'):
            sort_items(self,self.subroutines)
        if hasattr(self,'modprocedures'):
            sort_items(self,self.modprocedures)
        if hasattr(self,'functions'):
            sort_items(self,self.functions)
        if hasattr(self,'interfaces'):
            sort_items(self,self.interfaces)
        if hasattr(self,'absinterfaces'):
            sort_items(self,self.absinterfaces)
        if hasattr(self,'types'):
            sort_items(self,self.types)
        if hasattr(self,'programs'):
            sort_items(self,self.programs)
        if hasattr(self,'blockdata'):
            sort_items(self,self.blockdata)
        if hasattr(self,'boundprocs'):
            sort_items(self,self.boundprocs)
        if hasattr(self,'finalprocs'):
            sort_items(self,self.finalprocs)
        if hasattr(self,'args'):
            #sort_items(self.args,args=True)
            pass
Sorts components of the object.