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 sentencf __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
docs: Sorts analysis of all the words in the sentence. 
          This is required for consistency, because by default, analyses are 
          listed in arbitrary order;