nodes: 0, module; 1, function_definition; 2, function_name:sort; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, expression_statement; 8, return_statement; 9, comment:"""
          Sort the tribe, sorts by template name.
  
          .. rubric:: Example
  
          >>> tribe = Tribe(templates=[Template(name='c'), Template(name='b'),
          ...                          Template(name='a')])
          >>> tribe.sort()
          Tribe of 3 templates
          >>> tribe[0] # doctest: +NORMALIZE_WHITESPACE
          Template a:
           0 channels;
           lowcut: None Hz;
           highcut: None Hz;
           sampling rate None Hz;
           filter order: None;
           process length: None s
          """; 10, assignment; 11, identifier:self; 12, attribute; 13, call; 14, identifier:self; 15, identifier:templates; 16, identifier:sorted; 17, argument_list; 18, attribute; 19, keyword_argument; 20, identifier:self; 21, identifier:templates; 22, identifier:key; 23, lambda; 24, lambda_parameters; 25, attribute; 26, identifier:x; 27, identifier:x; 28, identifier:name
code: def sort(self):
          """
          Sort the tribe, sorts by template name.
  
          .. rubric:: Example
  
          >>> tribe = Tribe(templates=[Template(name='c'), Template(name='b'),
          ...                          Template(name='a')])
          >>> tribe.sort()
          Tribe of 3 templates
          >>> tribe[0] # doctest: +NORMALIZE_WHITESPACE
          Template a:
           0 channels;
           lowcut: None Hz;
           highcut: None Hz;
           sampling rate None Hz;
           filter order: None;
           process length: None s
          """
          self.templates = sorted(self.templates, key=lambda x: x.name)
          return self