nodes: 0, module; 1, function_definition; 2, function_name:__sort_analyses; 3, parameters; 4, block; 5, identifier:sentence; 6, expression_statement; 7, for_statement; 8, return_statement; 9, string; 10, identifier:word; 11, identifier:sentence; 12, block; 13, identifier:sentence; 14, string_content:Sorts analysis of all the words in the sentence. 
          This is required for consistency, because by default, analyses are 
          listed in arbitrary order;; 15, if_statement; 16, comparison_operator:ANALYSIS not in word; 17, block; 18, else_clause; 19, identifier:ANALYSIS; 20, identifier:word; 21, raise_statement; 22, block; 23, call; 24, expression_statement; 25, identifier:Exception; 26, argument_list; 27, assignment; 28, binary_operator:'(!) Error: no analysis found from word: '+str(word); 29, subscript; 30, call; 31, string; 32, call; 33, identifier:word; 34, identifier:ANALYSIS; 35, identifier:sorted; 36, argument_list; 37, string_content:(!) Error: no analysis found from word:; 38, identifier:str; 39, argument_list; 40, subscript; 41, line_continuation:\; 42, keyword_argument; 43, identifier:word; 44, identifier:word; 45, identifier:ANALYSIS; 46, identifier:key; 47, lambda; 48, lambda_parameters; 49, call; 50, identifier:x; 51, attribute; 52, argument_list; 53, string:"_"; 54, identifier:join; 55, list; 56, subscript; 57, subscript; 58, subscript; 59, subscript; 60, identifier:x; 61, identifier:ROOT; 62, identifier:x; 63, identifier:POSTAG; 64, identifier:x; 65, identifier:FORM; 66, identifier:x; 67, identifier:CLITIC
code: def __sort_analyses(sentence):
      ''' Sorts analysis of all the words in the sentence. 
          This is required for consistency, because by default, analyses are 
          listed in arbitrary order; '''
      for word in sentence:
          if ANALYSIS not in word:
              raise Exception( '(!) Error: no analysis found from word: '+str(word) )
          else:
              word[ANALYSIS] = sorted(word[ANALYSIS], \
                  key=lambda x : "_".join( [x[ROOT],x[POSTAG],x[FORM],x[CLITIC]] ))
      return sentence