From 7aa83f8c2dfb975ecbf97b104fe8aad38862fc91 Mon Sep 17 00:00:00 2001 From: KharchenkoVV Date: Thu, 23 Sep 2021 17:34:27 +0500 Subject: [PATCH] CS2-82: Sorted operations in Plan\Fact table --- AsbCloudInfrastructure/Services/WellOperationService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AsbCloudInfrastructure/Services/WellOperationService.cs b/AsbCloudInfrastructure/Services/WellOperationService.cs index 5f55f171..2b762d70 100644 --- a/AsbCloudInfrastructure/Services/WellOperationService.cs +++ b/AsbCloudInfrastructure/Services/WellOperationService.cs @@ -25,7 +25,8 @@ namespace AsbCloudInfrastructure.Services public IEnumerable GetCategories() { - var operationTypes = cachedOperationCategories.Where().Distinct(); + var operationTypes = cachedOperationCategories.Where() + .Distinct().OrderBy(o => o.Name); var result = operationTypes.Adapt(); return result;