whole_func_string: function sortCombinations( wordCombinations ) {
  	wordCombinations.sort( function( combinationA, combinationB ) {
  		const difference = combinationB.getRelevance() - combinationA.getRelevance();
  		// The combination with the highest relevance comes first.
  		if ( difference !== 0 ) {
  			return difference;
  		}
  		// In case of a tie on relevance, the longest combination comes first.
  		return combinationB.getLength() - combinationA.getLength();
  	} );
  }
func_code_string: function sortCombinations( wordCombinations ) {
  	wordCombinations.sort( function( combinationA, combinationB ) {
  		const difference = combinationB.getRelevance() - combinationA.getRelevance();
  		// The combination with the highest relevance comes first.
  		if ( difference !== 0 ) {
  			return difference;
  		}
  		// In case of a tie on relevance, the longest combination comes first.
  		return combinationB.getLength() - combinationA.getLength();
  	} );
  }
func_documentation_string: Sorts combinations based on their relevance and length.
  
  @param {WordCombination[]} wordCombinations The combinations to sort.
  @returns {void}