nafnaf1000
nafnaf1000

Reputation: 103

Odata v4 orderby expand webapi

so I am using webapi with the latest version of odata

I am trying to sort and filter my expand,

http://services.odata.org/V4/Northwind/Northwind.svc/Orders?%24select=OrderID&%24expand=Order_Details(%24select=UnitPrice;%24orderby=UnitPrice%20desc)

not getting any errors as the data comes back with no issue, however the the orderby inside of the expand dose nothing.

is this sort allowed? if not do you know of a workaround?

thanks

Upvotes: 1

Views: 905

Answers (1)

Fan Ouyang
Fan Ouyang

Reputation: 2142

This is not supported yet, see this issue to track the progress. https://github.com/OData/WebApi/issues/557

Upvotes: 1

Related Questions