code: def sort(self):
          
          self.templates = sorted(self.templates, key=lambda x: x.name)
          return self
docs: 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