code: def sort_replies(self, thats=False):
          self._sorted["topics"] = {}
          self._sorted["thats"]  = {}
          self._say("Sorting triggers...")
          for topic in self._topics.keys():
              self._say("Analyzing topic " + topic)
              alltrig = inherit_utils.get_topic_triggers(self, topic, False)
              self._sorted["topics"][topic] = sorting.sort_trigger_set(alltrig, True, self._say)
              that_triggers = inherit_utils.get_topic_triggers(self, topic, True)
              self._sorted["thats"][topic] = sorting.sort_trigger_set(that_triggers, False, self._say)
          if not "lists" in self._sorted:
              self._sorted["lists"] = {}
          self._sorted["lists"]["sub"] = sorting.sort_list(self._sub.keys())
          self._sorted["lists"]["person"] = sorting.sort_list(self._person.keys())