Skip to content

Support for multiple order by parameters #5

Description

@cgwrench

OData supports the use of multiple orderby parameters, for example:

http://services.odata.org/TripPinRESTierService/(S(gnk5dd3kd4d4i2drt2r2pn41))/People('scottketchum')/Trips?$orderby=StartsAt%20desc,EndsAt%20desc

However, it appears that joData only accepts a single parameter via the orderBy method.

Adding support for multiple orderby parameters could be done by modifying the existing orderBy method to accept multiple properties, or by introducing a thenBy method that can be used to chain multiple orderby parameters.

Is such a feature something that you'd like to see added to joData? If so, I am happy to begin work on such a feature.

Thanks for a great library,

Chris

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions