We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dc02a5 commit a0efedbCopy full SHA for a0efedb
1 file changed
QueryKit/QueryKitExtensions.cs
@@ -38,9 +38,7 @@ public static IOrderedQueryable<T> ApplyQueryKitSort<T>(this IQueryable<T> query
38
var sortLambdas = SortParser.ParseSort<T>(sortExpression, config);
39
40
if (sortLambdas.Count == 0)
41
- {
42
- return queryable.OrderBy(x => x);
43
- }
+ return queryable.OrderBy(_ => 0);
44
45
var firstSortInfo = sortLambdas[0];
46
if (firstSortInfo.Expression != null)
@@ -103,7 +101,7 @@ public static IOrderedEnumerable<T> ApplyQueryKitSort<T>(
103
101
var sortInfos = SortParser.ParseSort<T>(sortExpression, config);
104
102
105
if (sortInfos.Count == 0 || sortInfos[0].Expression is null)
106
- return source.OrderBy(x => x);
+ return source.OrderBy(_ => 0);
107
108
var first = sortInfos[0];
109
var ordered = first.IsAscending
0 commit comments