Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Category service - update query - get all categories - sort by Display Order
KrzysztofPajakccffe5fd6a40
diff --git a/src/Business/Grand.Business.Catalog/Services/Categories/CategoryService.cs b/src/Business/Grand.Business.Catalog/Services/Categories/CategoryService.csindex b00ed0e0f..0709bf1fb 100644--- a/src/Business/Grand.Business.Catalog/Services/Categories/CategoryService.cs+++ b/src/Business/Grand.Business.Catalog/Services/Categories/CategoryService.cs@@ -101,7 +101,7 @@ namespace Grand.Business.Catalog.Services.Categories}}- query = query.OrderBy(c => c.ParentCategoryId).ThenBy(c => c.DisplayOrder).ThenBy(c => c.Name);+ query = query.OrderBy(c => c.DisplayOrder).ThenBy(c => c.Name);//paginationreturn await Task.FromResult(new PagedList<Category>(query, pageIndex, pageSize));