function compareResultsByFilePath(a, b) {
	if (a.filePath < b.filePath) {
		return -1;
	}

	if (a.filePath > b.filePath) {
		return 1;
	}

	return 0;
}
An Array.prototype.sort() compatible compare function to order results by their file path.
@param {LintResult} a The first lint result.
@param {LintResult} b The second lint result.
@returns {number} An integer representing the order in which the two results should occur.