nodes: 0, module; 1, function_definition; 2, function_name:_sort; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, comment:"""
          Sort the response dictionaries priority levels for ordered iteration
          """; 11, call; 12, assignment; 13, assignment; 14, attribute; 15, argument_list; 16, attribute; 17, call; 18, attribute; 19, True; 20, attribute; 21, identifier:debug; 22, string; 23, identifier:self; 24, identifier:_responses; 25, identifier:OrderedDict; 26, argument_list; 27, identifier:self; 28, identifier:sorted; 29, identifier:self; 30, identifier:_log; 31, string_content:Sorting responses by priority; 32, call; 33, identifier:sorted; 34, argument_list; 35, call; 36, keyword_argument; 37, identifier:list; 38, argument_list; 39, identifier:reverse; 40, True; 41, call; 42, attribute; 43, argument_list; 44, attribute; 45, identifier:items; 46, identifier:self; 47, identifier:_responses
code: def _sort(self):
          """
          Sort the response dictionaries priority levels for ordered iteration
          """
          self._log.debug('Sorting responses by priority')
          self._responses = OrderedDict(sorted(list(self._responses.items()), reverse=True))
          self.sorted = True