def sort(self):
self.families.sort(key=lambda x: x.template.name)<EOL>return self<EOL>
Sort the families by template name.


.. rubric:: Example

>>> party = Party(families=[Family(template=Template(name='b')),
...                         Family(template=Template(name='a'))])
>>> party[0]
Family of 0 detections from template b
>>> party.sort()[0]
Family of 0 detections from template a