nodes: 0, module; 1, function_definition; 2, function_name:sort; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, if_statement; 8, if_statement; 9, if_statement; 10, if_statement; 11, if_statement; 12, if_statement; 13, if_statement; 14, if_statement; 15, if_statement; 16, if_statement; 17, if_statement; 18, if_statement; 19, if_statement; 20, if_statement; 21, if_statement; 22, string; 23, call; 24, block; 25, call; 26, block; 27, call; 28, block; 29, call; 30, block; 31, call; 32, block; 33, call; 34, block; 35, call; 36, block; 37, call; 38, block; 39, call; 40, block; 41, call; 42, block; 43, call; 44, block; 45, call; 46, block; 47, call; 48, block; 49, call; 50, block; 51, call; 52, comment:#sort_items(self.args,args=True); 53, block; 54, string_content:Sorts components of the object.; 55, identifier:hasattr; 56, argument_list; 57, expression_statement; 58, identifier:hasattr; 59, argument_list; 60, expression_statement; 61, identifier:hasattr; 62, argument_list; 63, expression_statement; 64, identifier:hasattr; 65, argument_list; 66, expression_statement; 67, identifier:hasattr; 68, argument_list; 69, expression_statement; 70, identifier:hasattr; 71, argument_list; 72, expression_statement; 73, identifier:hasattr; 74, argument_list; 75, expression_statement; 76, identifier:hasattr; 77, argument_list; 78, expression_statement; 79, identifier:hasattr; 80, argument_list; 81, expression_statement; 82, identifier:hasattr; 83, argument_list; 84, expression_statement; 85, identifier:hasattr; 86, argument_list; 87, expression_statement; 88, identifier:hasattr; 89, argument_list; 90, expression_statement; 91, identifier:hasattr; 92, argument_list; 93, expression_statement; 94, identifier:hasattr; 95, argument_list; 96, expression_statement; 97, identifier:hasattr; 98, argument_list; 99, pass_statement; 100, identifier:self; 101, string; 102, call; 103, identifier:self; 104, string; 105, call; 106, identifier:self; 107, string; 108, call; 109, identifier:self; 110, string; 111, call; 112, identifier:self; 113, string; 114, call; 115, identifier:self; 116, string; 117, call; 118, identifier:self; 119, string; 120, call; 121, identifier:self; 122, string; 123, call; 124, identifier:self; 125, string; 126, call; 127, identifier:self; 128, string; 129, call; 130, identifier:self; 131, string; 132, call; 133, identifier:self; 134, string; 135, call; 136, identifier:self; 137, string; 138, call; 139, identifier:self; 140, string; 141, call; 142, identifier:self; 143, string; 144, string_content:variables; 145, identifier:sort_items; 146, argument_list; 147, string_content:modules; 148, identifier:sort_items; 149, argument_list; 150, string_content:submodules; 151, identifier:sort_items; 152, argument_list; 153, string_content:common; 154, identifier:sort_items; 155, argument_list; 156, string_content:subroutines; 157, identifier:sort_items; 158, argument_list; 159, string_content:modprocedures; 160, identifier:sort_items; 161, argument_list; 162, string_content:functions; 163, identifier:sort_items; 164, argument_list; 165, string_content:interfaces; 166, identifier:sort_items; 167, argument_list; 168, string_content:absinterfaces; 169, identifier:sort_items; 170, argument_list; 171, string_content:types; 172, identifier:sort_items; 173, argument_list; 174, string_content:programs; 175, identifier:sort_items; 176, argument_list; 177, string_content:blockdata; 178, identifier:sort_items; 179, argument_list; 180, string_content:boundprocs; 181, identifier:sort_items; 182, argument_list; 183, string_content:finalprocs; 184, identifier:sort_items; 185, argument_list; 186, string_content:args; 187, identifier:self; 188, attribute; 189, identifier:self; 190, attribute; 191, identifier:self; 192, attribute; 193, identifier:self; 194, attribute; 195, identifier:self; 196, attribute; 197, identifier:self; 198, attribute; 199, identifier:self; 200, attribute; 201, identifier:self; 202, attribute; 203, identifier:self; 204, attribute; 205, identifier:self; 206, attribute; 207, identifier:self; 208, attribute; 209, identifier:self; 210, attribute; 211, identifier:self; 212, attribute; 213, identifier:self; 214, attribute; 215, identifier:self; 216, identifier:variables; 217, identifier:self; 218, identifier:modules; 219, identifier:self; 220, identifier:submodules; 221, identifier:self; 222, identifier:common; 223, identifier:self; 224, identifier:subroutines; 225, identifier:self; 226, identifier:modprocedures; 227, identifier:self; 228, identifier:functions; 229, identifier:self; 230, identifier:interfaces; 231, identifier:self; 232, identifier:absinterfaces; 233, identifier:self; 234, identifier:types; 235, identifier:self; 236, identifier:programs; 237, identifier:self; 238, identifier:blockdata; 239, identifier:self; 240, identifier:boundprocs; 241, identifier:self; 242, identifier:finalprocs
code: 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