code: def _sort(self):
          
          self._log.debug('Sorting responses by priority')
          self._responses = OrderedDict(sorted(list(self._responses.items()), reverse=True))
          self.sorted = True
docs: Sort the response dictionaries priority levels for ordered iteration