function _sortMessages(vMessages) {
		var sTarget, aMessages;
		if (Array.isArray(vMessages)) {
			vMessages = { "ignored": vMessages };
		}

		for (sTarget in vMessages) {
			aMessages = vMessages[sTarget];
			if (aMessages.length > 1) {
				aMessages.sort(Message.compare);
			}
		}
	}
Sort messages by type as specified in {@link sap.ui.core.message.Message#compare}.

@param {Object<string,sap.ui.core.message.Message[]>|sap.ui.core.message.Message[]} vMessages
  Map or array of Messages to be sorted (in order of severity) by their type property
@private