src/sap.m/src/sap/m/NotificationListGroup.js
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;
	}
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.

@private
@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.
Compares two priorities and returns the higher one .