我如何为 Func<IQueryable<T>, IOrderedQueryable<T>> orderBy = null,

how can i pass parameter for Func<IQueryable<T>, IOrderedQueryable<T>> orderBy = null,

我有以下通用存储库功能,但无法传递订单参数

Task<List<T>> AdvGetAllAsync(
            Expression<Func<T, bool>> expression = null,
            Func<IQueryable<T>, IOrderedQueryable<T>> orderBy = null,
            List<string> includes = null
            );

大概是这样:

var result = await someRep.AdvGetAllAsync(orderBy: q => q.OrderBy(x => x.SomeField));