@Override
	public int compareTo(RouterOperation routerOperation) {
		int result = path.compareTo(routerOperation.getPath());
		if (result == 0 && !ArrayUtils.isEmpty(methods))
			result = methods[0].compareTo(routerOperation.getMethods()[0]);
		if (result == 0 && operationModel != null && routerOperation.getOperationModel() != null)
			result = operationModel.getOperationId().compareTo(routerOperation.getOperationModel().getOperationId());
		if (result == 0 && operation != null)
			result = operation.operationId().compareTo(routerOperation.getOperation().operationId());
		return result;
	}
Sets operation model.

@param operationModel the operation model
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/RouterOperation.java