def add_trigger(self, trigger):
<EOL>self.sorted = False<EOL>if trigger.priority not in self._triggers:<EOL><INDENT>self._triggers[trigger.priority] = [trigger]<EOL>return<EOL><DEDENT>self._triggers[trigger.priority].append(trigger)<EOL>
Add a new trigger
:param trigger: The Trigger object
:type  trigger: Trigger