<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sort(self):
 """ Sort the tribe, sorts by template name. .. rubric:: Example Tribe of 3 templates 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