Skip to content

Commit

Permalink
fix (table) : converting IQueryable to IOrderedQueryable returned null
Browse files Browse the repository at this point in the history
  • Loading branch information
YongQuan-dotnet committed Sep 6, 2022
1 parent 08f1ba4 commit 5db29a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/TableModels/SortModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ IOrderedQueryable<TItem> ITableSortModel.SortList<TItem>(IQueryable<TItem> sourc
{
if (_sortDirection == SortDirection.None)
{
return source as IOrderedQueryable<TItem>;
return source.OrderBy(x => 0);
}

var lambda = (Expression<Func<TItem, TField>>)_getFieldExpression;
Expand Down

0 comments on commit 5db29a0

Please sign in to comment.