function comparePriority(firstPriority, secondPriority) {
		if (firstPriority == secondPriority) {
			return firstPriority;
		}

		if ((firstPriority == 'None')) {
			return secondPriority;
		}

		if ((firstPriority == 'Low') && (secondPriority != 'None')) {
			return secondPriority;
		}

		if ((firstPriority == 'Medium') && (secondPriority != 'None' && secondPriority != 'Low')) {
			return secondPriority;
		}

		return firstPriority;
	}
/**
	 * Compares two priorities and returns the higher one.
	 * @param {sap.ui.core.Priority} firstPriority First priority string to be compared
	 * @param {sap.ui.core.Priority} secondPriority Second priority string to be compared
	 * @returns {sap.ui.core.Priority} The highest priority
	 * @private
	 */
Compares two priorities and returns the higher one.
@param {sap.ui.core.Priority} firstPriority First priority string to be compared
@param {sap.ui.core.Priority} secondPriority Second priority string to be compared
@returns {sap.ui.core.Priority} The highest priority
@private
Compares two priorities and returns the higher one . @param { sap . ui . core . Priority } firstPriority First priority string to be compared @param { sap . ui . core . Priority } secondPriority Second priority string to be compared @returns { sap . ui . core . Priority } The highest priority @private
function comparePriority(firstPriority, secondPriority) {
		if (firstPriority == secondPriority) {
			return firstPriority;
		}
		if ((firstPriority == 'None')) {
			return secondPriority;
		}
		if ((firstPriority == 'Low') && (secondPriority != 'None')) {
			return secondPriority;
		}
		if ((firstPriority == 'Medium') && (secondPriority != 'None' && secondPriority != 'Low')) {
			return secondPriority;
		}
		return firstPriority;
	}
function comparePriority ( firstPriority , secondPriority ) { if ( firstPriority == secondPriority ) { return firstPriority ; } if ( ( firstPriority == 'None' ) ) { return secondPriority ; } if ( ( firstPriority == 'Low' ) && ( secondPriority != 'None' ) ) { return secondPriority ; } if ( ( firstPriority == 'Medium' ) && ( secondPriority != 'None' && secondPriority != 'Low' ) ) { return secondPriority ; } return firstPriority ; }
Compares two priorities and returns the higher one.
Compares two priorities and returns the higher one .