Skip to content

Commit

Permalink
Fix ThenBy order
Browse files Browse the repository at this point in the history
  • Loading branch information
mrahhal committed Nov 24, 2021
1 parent 8651087 commit c4bf915
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ private static IOrderedQueryable<T> ThenOrderBy(IOrderedQueryable<T> query, Keys
{
isDescending = !isDescending;
}
return isDescending ? query.ThenBy(accessExpression) : query.ThenByDescending(accessExpression);
return isDescending ? query.ThenByDescending(accessExpression) : query.ThenBy(accessExpression);
}

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

0 comments on commit c4bf915

Please sign in to comment.