Skip to content

Commit 549eef5

Browse files
MnatsakanMargaryanMnatsakanMargaryan
authored andcommitted
Bug fix related to column distict values ordering
1 parent 575371a commit 549eef5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/GridifyExtensions/Extensions/QueryableExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static async Task<PagedResponse<object>> ColumnDistinctValuesAsync<TEntit
7979
.ApplyFiltering(model, mapper)
8080
.ApplySelect(model.PropertyName, mapper)
8181
.Distinct()
82-
.OrderBy(x => x ?? 0)
82+
.OrderBy(x => x)
8383
.GetPagedAsync(model, cancellationToken);
8484

8585
if (mapper!.NeedBase36Conversion(model.PropertyName))
@@ -123,7 +123,7 @@ public static async Task<CursoredResponse<object>> ColumnDistinctValuesAsync<TEn
123123
.ApplyFiltering(gridifyModel, mapper)
124124
.ApplySelect(model.PropertyName, mapper)
125125
.Distinct()
126-
.OrderBy(x => x ?? 0)
126+
.OrderBy(x => x)
127127
.Take(model.PageSize)
128128
.ToListAsync(cancellationToken: cancellationToken);
129129

src/GridifyExtensions/GridifyExtensions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<PackageReadmeFile>Readme.md</PackageReadmeFile>
99
<Authors>Pandatech</Authors>
1010
<Copyright>MIT</Copyright>
11-
<Version>1.3.5</Version>
11+
<Version>1.3.6</Version>
1212
<PackageId>Pandatech.GridifyExtensions</PackageId>
1313
<Title>Pandatech.Gridify.Extensions</Title>
1414
<PackageTags>Pandatech, library, Gridify, Pagination, Filters</PackageTags>
1515
<Description>Pandatech.Gridify.Extensions simplifies and extends the functionality of the Gridify NuGet package. It provides additional extension methods and functionality to streamline data filtering and pagination, making it more intuitive and powerful to use in .NET applications. Our enhancements ensure more flexibility, reduce boilerplate code, and improve overall developer productivity when working with Gridify.</Description>
1616
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-gridify-extensions</RepositoryUrl>
17-
<PackageReleaseNotes>Bug fix related to cursored column distict values</PackageReleaseNotes>
17+
<PackageReleaseNotes>Bug fix related to column distict values ordering</PackageReleaseNotes>
1818
</PropertyGroup>
1919

2020
<ItemGroup>

0 commit comments

Comments
 (0)