odataorg.github.io icon indicating copy to clipboard operation
odataorg.github.io copied to clipboard

Does child orderby work on the demo url?

Open NicoJuicy opened this issue 10 years ago • 1 comments

If i use this link ( which should use the correct orderby syntax)

http://services.odata.org/V4/Northwind/Northwind.svc/Orders?$select=OrderID&$expand=Order_Details($select=UnitPrice,Quantity;$orderby=Quantity)&$top=2

The $orderby seems to be ignored. Is this possible or am i doing something wrong?

NicoJuicy avatar Nov 23 '15 21:11 NicoJuicy

Hi, I think you use it correctly. However, the Northwind-Service seems to be buggy, especially with respect to $expand. For instance, this request also does not work properly:

http://services.odata.org/V4/Northwind/Northwind.svc/Categories?$expand=Products($filter=UnitPrice%20lt%2010) $filter has no effect in this case, either.

If you try something similar with the TripPin-service, then it works: http://services.odata.org/V4/(S(flziazpqi4wmjxfjp0pmpib2))/TripPinServiceRW/People('russellwhyte')?$expand=Friends($select=UserName,FirstName,LastName;$orderby=LastName)

hroesing avatar Dec 10 '15 13:12 hroesing