src/main/java/edu/cmu/lti/oaqa/util/SearchResult.java
/**
	 * Compares two results by comparing their scores.
	 * 
	 * @param result the result to be compared
	 * @return a negative integer, zero or a positive integer as this result is
	 *         less than, equal to or greater than the specified result
	 */
Compares two results by comparing their scores.

@param result the result to be compared
@return a negative integer, zero or a positive integer as this result is
less than, equal to or greater than the specified result
Compares two results by comparing their scores . @param result the result to be compared @return a negative integer zero or a positive integer as this result is less than equal to or greater than the specified result
public int compareTo(SearchResult result) {
		float diff = score - result.getScore();
		if (diff < 0)
			return -1;
		else if (diff > 0)
			return 1;
		else
			return 0;
	}
public int compareTo ( SearchResult result ) { float diff = score - result . getScore ( ) ; if ( diff < 0 ) return - 1 ; else if ( diff > 0 ) return 1 ; else return 0 ; }
Compares two results by comparing their scores.
Compares two results by comparing their scores .
//			return answer.compareTo(result.getAnswer());  // tie-breaking
