Skip to content

Commit c4bf915

Browse files
committed
Fix ThenBy order
1 parent 8651087 commit c4bf915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MR.EntityFrameworkCore.KeysetPagination/KeysetPaginationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ private static IOrderedQueryable<T> ThenOrderBy(IOrderedQueryable<T> query, Keys
348348
{
349349
isDescending = !isDescending;
350350
}
351-
return isDescending ? query.ThenBy(accessExpression) : query.ThenByDescending(accessExpression);
351+
return isDescending ? query.ThenByDescending(accessExpression) : query.ThenBy(accessExpression);
352352
}
353353

354354
private static Expression<Func<T, TKey>> MakeMemberAccessLambda<TKey>(PropertyInfo property)

0 commit comments

Comments
 (0)