< Summary

Information
Class: Services.FiltersServices.SortManagers.OrderSortManager
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/FiltersServices/SortManagers/OrderSortManager.cs
Line coverage
98%
Covered lines: 330
Uncovered lines: 4
Coverable lines: 334
Total lines: 354
Line coverage: 98.8%
Branch coverage
98%
Covered branches: 246
Total branches: 250
Branch coverage: 98.4%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ApplySortOrderQueryable(...)97.01%676798.11%
ApplySortOrder(...)98.37%12312398.11%
GetSortOrderViewData(...)100%6060100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/FiltersServices/SortManagers/OrderSortManager.cs

#LineLine coverage
 1using OzonDomains.Models;
 2using Services.FiltersServices.SortModels;
 3
 4namespace Services.FiltersServices.SortManagers
 5{
 6    public class OrderSortManager
 7    {
 8        public IQueryable<Order> ApplySortOrderQueryable(IQueryable<Order> ordersQuery, OrderSortState sortOrder)
 9        {
 13110            return sortOrder switch
 13111            {
 212                OrderSortState.ShipmentNumberAsc => ordersQuery.OrderBy(o => o.ShipmentNumber),
 213                OrderSortState.ShipmentNumberDesc => ordersQuery.OrderByDescending(o => o.ShipmentNumber),
 13114
 215                OrderSortState.ProcessingDateAsc => ordersQuery.OrderBy(o => o.ProcessingDate),
 116                OrderSortState.ProcessingDateDesc => ordersQuery.OrderByDescending(o => o.ProcessingDate),
 13117
 218                OrderSortState.ShippingDateAsc => ordersQuery.OrderBy(o => o.ShippingDate),
 219                OrderSortState.ShippingDateDesc => ordersQuery.OrderByDescending(o => o.ShippingDate),
 13120
 221                OrderSortState.StatusAsc => ordersQuery.OrderBy(o => o.ClientStatus != null ? o.ClientStatus.Name : null
 222                OrderSortState.StatusDesc => ordersQuery.OrderByDescending(o => o.ClientStatus != null ? o.ClientStatus.
 13123
 224                OrderSortState.AppStatusIdAsc => ordersQuery.OrderBy(o => o.AppStatus != null ? o.AppStatus.Name : null)
 225                OrderSortState.AppStatusIdDesc => ordersQuery.OrderByDescending(o => o.AppStatus != null ? o.AppStatus.N
 13126
 227                OrderSortState.ShipmentAmountAsc => ordersQuery.OrderBy(o => o.ShipmentAmount),
 228                OrderSortState.ShipmentAmountDesc => ordersQuery.OrderByDescending(o => o.ShipmentAmount),
 13129
 230                OrderSortState.ProductNameAsc => ordersQuery.OrderBy(o => o.ProductName),
 231                OrderSortState.ProductNameDesc => ordersQuery.OrderByDescending(o => o.ProductName),
 13132
 233                OrderSortState.ArticleAsc => ordersQuery.OrderBy(o => o.ProductKey),
 234                OrderSortState.ArticleDesc => ordersQuery.OrderByDescending(o => o.ProductKey),
 13135
 236                OrderSortState.PriceAsc => ordersQuery.OrderBy(o => o.Price),
 237                OrderSortState.PriceDesc => ordersQuery.OrderByDescending(o => o.Price),
 13138
 239                OrderSortState.QuantityAsc => ordersQuery.OrderBy(o => o.Quantity),
 240                OrderSortState.QuantityDesc => ordersQuery.OrderByDescending(o => o.Quantity),
 13141
 242                OrderSortState.ShipmentWarehouseIdAsc => ordersQuery.OrderBy(o => o.ShipmentWarehouse != null ? o.Shipme
 243                OrderSortState.ShipmentWarehouseIdDesc => ordersQuery.OrderByDescending(o => o.ShipmentWarehouse != null
 13144
 245                OrderSortState.СurrencyIdAsc => ordersQuery.OrderBy(o => o.Сurrency != null ? o.Сurrency.Name : null),
 246                OrderSortState.СurrencyIdDesc => ordersQuery.OrderByDescending(o => o.Сurrency != null ? o.Сurrency.Name
 13147
 248                OrderSortState.SupplierAsc => ordersQuery.OrderBy(o => o.Supplier != null ? o.Supplier.Name : null),
 249                OrderSortState.SupplierDesc => ordersQuery.OrderByDescending(o => o.Supplier != null ? o.Supplier.Name :
 13150
 251                OrderSortState.PurchasePriceAsc => ordersQuery.OrderBy(o => o.PurchasePrice),
 252                OrderSortState.PurchasePriceDesc => ordersQuery.OrderByDescending(o => o.PurchasePrice),
 13153
 254                OrderSortState.ProductInfoIdAsc => ordersQuery.OrderBy(o => o.ProductInfoId),
 255                OrderSortState.ProductInfoIdDesc => ordersQuery.OrderByDescending(o => o.ProductInfoId),
 13156
 257                OrderSortState.MinOzonCommissionAsc => ordersQuery.OrderBy(o => o.MinOzonCommission),
 258                OrderSortState.MinOzonCommissionDesc => ordersQuery.OrderByDescending(o => o.MinOzonCommission),
 13159
 260                OrderSortState.MaxOzonCommissionAsc => ordersQuery.OrderBy(o => o.MaxOzonCommission),
 261                OrderSortState.MaxOzonCommissionDesc => ordersQuery.OrderByDescending(o => o.MaxOzonCommission),
 13162
 263                OrderSortState.ProfitAsc => ordersQuery.OrderBy(o => o.MinProfit),
 264                OrderSortState.ProfitDesc => ordersQuery.OrderByDescending(o => o.MinProfit),
 13165
 266                OrderSortState.CurrentPriceAsc => ordersQuery.OrderBy(o => o.ProductInfo != null ? o.ProductInfo.Current
 267                OrderSortState.CurrentPriceDesc => ordersQuery.OrderByDescending(o => o.ProductInfo != null ? o.ProductI
 13168
 269                OrderSortState.VolumeAsc => ordersQuery.OrderBy(o => o.ProductInfo != null ? o.ProductInfo.VolumetricWei
 270                OrderSortState.VolumeDesc => ordersQuery.OrderByDescending(o => o.ProductInfo != null ? o.ProductInfo.Vo
 13171
 272                OrderSortState.DiscountAsc => ordersQuery.OrderBy(o => o.MinDiscount),
 273                OrderSortState.DiscountDesc => ordersQuery.OrderByDescending(o => o.MinDiscount),
 13174
 275                OrderSortState.DeliveryCityAsc => ordersQuery.OrderBy(o => o.DeliveryCity),
 276                OrderSortState.DeliveryCityDesc => ordersQuery.OrderByDescending(o => o.DeliveryCity),
 13177
 278                OrderSortState.CategoryAsc => ordersQuery.OrderBy(o => o.NewCategory),
 279                OrderSortState.CategoryDesc => ordersQuery.OrderByDescending(o => o.NewCategory),
 13180
 281                OrderSortState.OrderNumberToSupplierAsc => ordersQuery.OrderBy(o => o.OrderNumberToSupplier),
 282                OrderSortState.OrderNumberToSupplierDesc => ordersQuery.OrderByDescending(o => o.OrderNumberToSupplier),
 083                OrderSortState.ScanitAsc => ordersQuery.OrderBy(o => o.Scanit),
 084                OrderSortState.ScanitDesc => ordersQuery.OrderByDescending(o => o.Scanit),
 13185
 286                OrderSortState.OzonClientAsc => ordersQuery.OrderBy(o => o.OzonClient != null ? o.OzonClient.Name : null
 287                OrderSortState.OzonClientDesc => ordersQuery.OrderByDescending(o => o.OzonClient != null ? o.OzonClient.
 13188
 289                OrderSortState.ManufacturerAsc => ordersQuery
 290                    .OrderBy(o => o.EtProducer != null ? o.EtProducer.Name : null)
 291                    .ThenBy(o => o.ProductKey),
 292                OrderSortState.ManufacturerDesc => ordersQuery
 293                    .OrderByDescending(o => o.EtProducer != null ? o.EtProducer.Name : null)
 294                    .ThenBy(o => o.ProductKey),
 13195
 296                OrderSortState.FromFileAsc => ordersQuery.OrderBy(o => o.FromFile),
 297                OrderSortState.FromFileDesc => ordersQuery.OrderByDescending(o => o.FromFile),
 13198
 299                OrderSortState.DeliveryPeriodAsc => ordersQuery.OrderBy(o => o.DeliveryPeriod),
 2100                OrderSortState.DeliveryPeriodDesc => ordersQuery.OrderByDescending(o => o.DeliveryPeriod),
 131101
 2102                OrderSortState.CostPriceAsc => ordersQuery.OrderBy(o => o.CostPrice),
 2103                OrderSortState.CostPriceDesc => ordersQuery.OrderByDescending(o => o.CostPrice),
 131104
 2105                OrderSortState.TimeLeftAsc => ordersQuery.OrderBy(o => o.ShippingDate),
 2106                OrderSortState.TimeLeftDesc => ordersQuery.OrderByDescending(o => o.ShippingDate),
 131107
 2108                OrderSortState.LastStatusChangeDateAsc => ordersQuery.OrderBy(o => o.LastStatusChangeDate),
 2109                OrderSortState.LastStatusChangeDateDesc => ordersQuery.OrderByDescending(o => o.LastStatusChangeDate),
 131110
 2111                OrderSortState.DeliveryAsc => ordersQuery.OrderBy(o => o.Delivery != null && o.Delivery.Provider != null
 2112                OrderSortState.DeliveryDesc => ordersQuery.OrderByDescending(o => o.Delivery != null && o.Delivery.Provi
 131113
 4114                _ => ordersQuery.OrderByDescending(o => o.ProcessingDate)
 131115            };
 116        }
 117
 118        public IEnumerable<Order> ApplySortOrder(IEnumerable<Order> orders, OrderSortState sortOrder)
 119        {
 131120            return sortOrder switch
 131121            {
 7122                OrderSortState.ShipmentNumberAsc => orders.OrderBy(o => o.ShipmentNumber),
 7123                OrderSortState.ShipmentNumberDesc => orders.OrderByDescending(o => o.ShipmentNumber),
 131124
 7125                OrderSortState.ProcessingDateAsc => orders.OrderBy(o => o.ProcessingDate),
 7126                OrderSortState.ProcessingDateDesc => orders.OrderByDescending(o => o.ProcessingDate),
 131127
 7128                OrderSortState.ShippingDateAsc => orders.OrderBy(o => o.ShippingDate),
 7129                OrderSortState.ShippingDateDesc => orders.OrderByDescending(o => o.ShippingDate),
 131130
 8131                OrderSortState.StatusAsc => orders.OrderBy(o => o.ClientStatus?.Name),
 8132                OrderSortState.StatusDesc => orders.OrderByDescending(o => o.ClientStatus?.Name),
 131133
 7134                OrderSortState.AppStatusIdAsc => orders.OrderBy(o => o.AppStatus?.Name),
 7135                OrderSortState.AppStatusIdDesc => orders.OrderByDescending(o => o.AppStatus?.Name),
 131136
 7137                OrderSortState.ShipmentAmountAsc => orders.OrderBy(o => o.ShipmentAmount),
 7138                OrderSortState.ShipmentAmountDesc => orders.OrderByDescending(o => o.ShipmentAmount),
 131139
 7140                OrderSortState.ProductNameAsc => orders.OrderBy(o => o.ProductName),
 7141                OrderSortState.ProductNameDesc => orders.OrderByDescending(o => o.ProductName),
 131142
 7143                OrderSortState.ArticleAsc => orders.OrderBy(o => o.ProductKey),
 7144                OrderSortState.ArticleDesc => orders.OrderByDescending(o => o.ProductKey),
 131145
 7146                OrderSortState.PriceAsc => orders.OrderBy(o => o.Price),
 7147                OrderSortState.PriceDesc => orders.OrderByDescending(o => o.Price),
 131148
 7149                OrderSortState.QuantityAsc => orders.OrderBy(o => o.Quantity),
 7150                OrderSortState.QuantityDesc => orders.OrderByDescending(o => o.Quantity),
 131151
 7152                OrderSortState.ShipmentWarehouseIdAsc => orders.OrderBy(o => o.ShipmentWarehouse?.Name),
 7153                OrderSortState.ShipmentWarehouseIdDesc => orders.OrderByDescending(o => o.ShipmentWarehouse?.Name),
 131154
 7155                OrderSortState.СurrencyIdAsc => orders.OrderBy(o => o.Сurrency?.Name),
 7156                OrderSortState.СurrencyIdDesc => orders.OrderByDescending(o => o.Сurrency?.Name),
 131157
 7158                OrderSortState.SupplierAsc => orders.OrderBy(o => o.Supplier?.Name),
 7159                OrderSortState.SupplierDesc => orders.OrderByDescending(o => o.Supplier?.Name),
 131160
 7161                OrderSortState.PurchasePriceAsc => orders.OrderBy(o => o.PurchasePrice),
 7162                OrderSortState.PurchasePriceDesc => orders.OrderByDescending(o => o.PurchasePrice),
 131163
 7164                OrderSortState.ProductInfoIdAsc => orders.OrderBy(o => o.ProductInfoId),
 7165                OrderSortState.ProductInfoIdDesc => orders.OrderByDescending(o => o.ProductInfoId),
 131166
 7167                OrderSortState.MinOzonCommissionAsc => orders.OrderBy(o => o.MinOzonCommission),
 7168                OrderSortState.MinOzonCommissionDesc => orders.OrderByDescending(o => o.MinOzonCommission),
 131169
 7170                OrderSortState.MaxOzonCommissionAsc => orders.OrderBy(o => o.MaxOzonCommission),
 7171                OrderSortState.MaxOzonCommissionDesc => orders.OrderByDescending(o => o.MaxOzonCommission),
 131172
 8173                OrderSortState.ProfitAsc => orders.OrderBy(o => o.MinProfit),
 8174                OrderSortState.ProfitDesc => orders.OrderByDescending(o => o.MinProfit),
 131175
 7176                OrderSortState.CurrentPriceAsc => orders.OrderBy(o => o.ProductInfo?.CurrentPriceWithDiscount),
 7177                OrderSortState.CurrentPriceDesc => orders.OrderByDescending(o => o.ProductInfo?.CurrentPriceWithDiscount
 131178
 7179                OrderSortState.VolumeAsc => orders.OrderBy(o => o.ProductInfo?.VolumetricWeight),
 7180                OrderSortState.VolumeDesc => orders.OrderByDescending(o => o.ProductInfo?.VolumetricWeight),
 131181
 7182                OrderSortState.DiscountAsc => orders.OrderBy(o => o.MinDiscount),
 7183                OrderSortState.DiscountDesc => orders.OrderByDescending(o => o.MinDiscount),
 131184
 7185                OrderSortState.DeliveryCityAsc => orders.OrderBy(o => o.DeliveryCity),
 7186                OrderSortState.DeliveryCityDesc => orders.OrderByDescending(o => o.DeliveryCity),
 131187
 7188                OrderSortState.CategoryAsc => orders.OrderBy(o => o.NewCategory),
 7189                OrderSortState.CategoryDesc => orders.OrderByDescending(o => o.NewCategory),
 131190
 7191                OrderSortState.OrderNumberToSupplierAsc => orders.OrderBy(o => o.OrderNumberToSupplier),
 7192                OrderSortState.OrderNumberToSupplierDesc => orders.OrderByDescending(o => o.OrderNumberToSupplier),
 0193                OrderSortState.ScanitAsc => orders.OrderBy(o => o.Scanit),
 0194                OrderSortState.ScanitDesc => orders.OrderByDescending(o => o.Scanit),
 131195
 7196                OrderSortState.OzonClientAsc => orders.OrderBy(o => o.OzonClient?.Name ?? string.Empty),
 7197                OrderSortState.OzonClientDesc => orders.OrderByDescending(o => o.OzonClient?.Name ?? string.Empty),
 131198
 2199                OrderSortState.ManufacturerAsc => orders
 7200                    .OrderBy(o => o.EtProducer?.Name ?? string.Empty)
 9201                    .ThenBy(o => o.ProductKey ?? string.Empty),
 2202                OrderSortState.ManufacturerDesc => orders
 7203                    .OrderByDescending(o => o.EtProducer?.Name ?? string.Empty)
 9204                    .ThenBy(o => o.ProductKey ?? string.Empty),
 131205
 7206                OrderSortState.FromFileAsc => orders.OrderBy(o => o.FromFile),
 7207                OrderSortState.FromFileDesc => orders.OrderByDescending(o => o.FromFile),
 131208
 7209                OrderSortState.DeliveryPeriodAsc => orders.OrderBy(x => x.DeliveryPeriodDay),
 7210                OrderSortState.DeliveryPeriodDesc => orders.OrderByDescending(x => x.DeliveryPeriodDay),
 131211
 7212                OrderSortState.CostPriceAsc => orders.OrderBy(o => o.CostPrice),
 7213                OrderSortState.CostPriceDesc => orders.OrderByDescending(o => o.CostPrice),
 131214
 7215                OrderSortState.TimeLeftAsc => orders.OrderBy(o => o.TimeLeftDay),
 7216                OrderSortState.TimeLeftDesc => orders.OrderByDescending(o => o.TimeLeftDay),
 131217
 7218                OrderSortState.LastStatusChangeDateAsc => orders.OrderBy(o => o.LastStatusChangeDate),
 7219                OrderSortState.LastStatusChangeDateDesc => orders.OrderByDescending(o => o.LastStatusChangeDate),
 131220
 8221                OrderSortState.DeliveryAsc => orders.OrderBy(o => o.Delivery?.Provider?.Name),
 8222                OrderSortState.DeliveryDesc => orders.OrderByDescending(o => o.Delivery?.Provider?.Name),
 131223
 13224                _ => orders.OrderByDescending(o => o.ProcessingDate)
 131225            };
 226        }
 227
 228        public Dictionary<string, OrderSortState> GetSortOrderViewData(OrderSortState sortOrder)
 229        {
 61230            return new Dictionary<string, OrderSortState>
 61231            {
 61232                ["ShipmentNumberSort"] = sortOrder == OrderSortState.ShipmentNumberAsc
 61233                    ? OrderSortState.ShipmentNumberDesc
 61234                    : OrderSortState.ShipmentNumberAsc,
 61235
 61236                ["ProcessingDateSort"] = sortOrder == OrderSortState.ProcessingDateAsc
 61237                    ? OrderSortState.ProcessingDateDesc
 61238                    : OrderSortState.ProcessingDateAsc,
 61239
 61240                ["ShippingDateSort"] = sortOrder == OrderSortState.ShippingDateAsc
 61241                    ? OrderSortState.ShippingDateDesc
 61242                    : OrderSortState.ShippingDateAsc,
 61243
 61244                ["StatusSort"] = sortOrder == OrderSortState.StatusAsc
 61245                    ? OrderSortState.StatusDesc
 61246                    : OrderSortState.StatusAsc,
 61247
 61248                ["CurrentPriceSort"] = sortOrder == OrderSortState.CurrentPriceAsc
 61249                    ? OrderSortState.CurrentPriceDesc
 61250                    : OrderSortState.CurrentPriceAsc,
 61251
 61252                ["AppStatusIdSort"] = sortOrder == OrderSortState.AppStatusIdAsc
 61253                    ? OrderSortState.AppStatusIdDesc
 61254                    : OrderSortState.AppStatusIdAsc,
 61255
 61256                ["ShipmentAmountSort"] = sortOrder == OrderSortState.ShipmentAmountAsc
 61257                    ? OrderSortState.ShipmentAmountDesc
 61258                    : OrderSortState.ShipmentAmountAsc,
 61259
 61260                ["ProductNameSort"] = sortOrder == OrderSortState.ProductNameAsc
 61261                    ? OrderSortState.ProductNameDesc
 61262                    : OrderSortState.ProductNameAsc,
 61263
 61264                ["ArticleSort"] = sortOrder == OrderSortState.ArticleAsc
 61265                    ? OrderSortState.ArticleDesc
 61266                    : OrderSortState.ArticleAsc,
 61267
 61268                ["PriceSort"] = sortOrder == OrderSortState.PriceAsc
 61269                    ? OrderSortState.PriceDesc
 61270                    : OrderSortState.PriceAsc,
 61271
 61272                ["QuantitySort"] = sortOrder == OrderSortState.QuantityAsc
 61273                    ? OrderSortState.QuantityDesc
 61274                    : OrderSortState.QuantityAsc,
 61275
 61276                ["ShipmentWarehouseSort"] = sortOrder == OrderSortState.ShipmentWarehouseIdAsc
 61277                    ? OrderSortState.ShipmentWarehouseIdDesc
 61278                    : OrderSortState.ShipmentWarehouseIdAsc,
 61279
 61280                ["SupplierSort"] = sortOrder == OrderSortState.SupplierAsc
 61281                    ? OrderSortState.SupplierDesc
 61282                    : OrderSortState.SupplierAsc,
 61283
 61284                ["PurchasePriceSort"] = sortOrder == OrderSortState.PurchasePriceAsc
 61285                    ? OrderSortState.PurchasePriceDesc
 61286                    : OrderSortState.PurchasePriceAsc,
 61287
 61288                ["ProductInfoIdSort"] = sortOrder == OrderSortState.ProductInfoIdAsc
 61289                    ? OrderSortState.ProductInfoIdDesc
 61290                    : OrderSortState.ProductInfoIdAsc,
 61291
 61292                ["OzonCommissionSort"] = sortOrder == OrderSortState.MinOzonCommissionAsc
 61293                    ? OrderSortState.MinOzonCommissionDesc
 61294                    : OrderSortState.MinOzonCommissionAsc,
 61295
 61296                ["VolumeSort"] = sortOrder == OrderSortState.VolumeAsc
 61297                    ? OrderSortState.VolumeDesc
 61298                    : OrderSortState.VolumeAsc,
 61299
 61300                ["ProfitSort"] = sortOrder == OrderSortState.ProfitAsc
 61301                    ? OrderSortState.ProfitDesc
 61302                    : OrderSortState.ProfitAsc,
 61303
 61304                ["DiscountSort"] = sortOrder == OrderSortState.DiscountAsc
 61305                    ? OrderSortState.DiscountDesc
 61306                    : OrderSortState.DiscountAsc,
 61307
 61308                ["DeliveryCitySort"] = sortOrder == OrderSortState.DeliveryCityAsc
 61309                    ? OrderSortState.DeliveryCityDesc
 61310                    : OrderSortState.DeliveryCityAsc,
 61311
 61312                ["CategorySort"] = sortOrder == OrderSortState.CategoryAsc
 61313                    ? OrderSortState.CategoryDesc
 61314                    : OrderSortState.CategoryAsc,
 61315
 61316                ["OrderNumberToSupplierSort"] = sortOrder == OrderSortState.OrderNumberToSupplierAsc
 61317                    ? OrderSortState.OrderNumberToSupplierDesc
 61318                    : OrderSortState.OrderNumberToSupplierAsc,
 61319
 61320                ["OzonClient"] = sortOrder == OrderSortState.OzonClientAsc
 61321                    ? OrderSortState.OzonClientDesc
 61322                    : OrderSortState.OzonClientAsc,
 61323
 61324                ["ManufacturerSort"] = sortOrder == OrderSortState.ManufacturerAsc
 61325                    ? OrderSortState.ManufacturerDesc
 61326                    : OrderSortState.ManufacturerAsc,
 61327
 61328                ["FromFileSort"] = sortOrder == OrderSortState.FromFileAsc
 61329                    ? OrderSortState.FromFileDesc
 61330                    : OrderSortState.FromFileAsc,
 61331
 61332                ["DeliveryPeriodSort"] = sortOrder == OrderSortState.DeliveryPeriodAsc
 61333                    ? OrderSortState.DeliveryPeriodDesc
 61334                    : OrderSortState.DeliveryPeriodAsc,
 61335
 61336                ["CostPriceсеSort"] = sortOrder == OrderSortState.CostPriceAsc
 61337                    ? OrderSortState.CostPriceDesc
 61338                    : OrderSortState.CostPriceAsc,
 61339
 61340                ["TimeLeftSort"] = sortOrder == OrderSortState.TimeLeftAsc
 61341                    ? OrderSortState.TimeLeftDesc
 61342                    : OrderSortState.TimeLeftAsc,
 61343
 61344                ["LastStatusChangeDateSort"] = sortOrder == OrderSortState.LastStatusChangeDateAsc
 61345                    ? OrderSortState.LastStatusChangeDateDesc
 61346                    : OrderSortState.LastStatusChangeDateAsc,
 61347
 61348                ["DeliverySort"] = sortOrder == OrderSortState.DeliveryAsc
 61349                    ? OrderSortState.DeliveryDesc
 61350                    : OrderSortState.DeliveryAsc
 61351            };
 352        }
 353    }
 354}