Skip to content

Commit

Permalink
Category service - update query - get all categories - sort by Displa…
Browse files Browse the repository at this point in the history
…y Order
  • Loading branch information
KrzysztofPajak committed Oct 25, 2021
1 parent 6ddf9cd commit ccffe5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public partial class CategoryService : ICategoryService
}
}

query = query.OrderBy(c => c.ParentCategoryId).ThenBy(c => c.DisplayOrder).ThenBy(c => c.Name);
query = query.OrderBy(c => c.DisplayOrder).ThenBy(c => c.Name);

//pagination
return await Task.FromResult(new PagedList<Category>(query, pageIndex, pageSize));
Expand Down

0 comments on commit ccffe5f

Please sign in to comment.