Skip to content

Bug: sorting on multiple fields does not work #745

Closed
@bart-degreed

Description

@bart-degreed

A query like /api/articles?sort=authorName,-pageCount should sort on author, and within that subset sort in pageCount in descending order.

QueryableExtensions contains two methods:

public static IOrderedQueryable<TSource> Sort<TSource>(this IQueryable<TSource> source, SortQueryContext sortQuery) { ... }

public static IOrderedQueryable<TSource> Sort<TSource>(this IOrderedQueryable<TSource> source, SortQueryContext sortQuery) { }

But the second one (building query based upon a parent ordering) is never called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions