From cbf3d5e56d9bb3358e91966fa182a4eaebc6dec3 Mon Sep 17 00:00:00 2001 From: v-haiboz Date: Wed, 16 Jun 2021 12:20:47 +0800 Subject: [PATCH] Task439320:[REST] operation list in description changed every time when CI run --- Microsoft.RestApi.RestTransformer/RestGroupTransformer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Microsoft.RestApi.RestTransformer/RestGroupTransformer.cs b/Microsoft.RestApi.RestTransformer/RestGroupTransformer.cs index c06234e..ffdcba5 100644 --- a/Microsoft.RestApi.RestTransformer/RestGroupTransformer.cs +++ b/Microsoft.RestApi.RestTransformer/RestGroupTransformer.cs @@ -57,7 +57,7 @@ public OperationGroupEntity Transform(SwaggerModel swaggerModel, RestApiRootItem private string GenerateMetaDataDescription(ConcurrentBag operations, string serviceName, string groupName) { const string formatStr= "Learn more about [{0} {1} Operations]. How to [{2}]."; - var names=operations.Select(p=>p.Name); + var names=operations.Select(p=>p.Name).OrderBy(n => n); return string.Format(formatStr, serviceName, groupName, string.Join(",", names)); } }