OData / odataorg.github.io

Staging site and collaboration repository for http://www.odata.org
MIT License
64 stars 101 forks source link

Does child orderby work on the demo url? #76

Open NicoJuicy opened 8 years ago

NicoJuicy commented 8 years ago

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?

hroesing commented 8 years ago

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)