I currently have an OData V4 service that has the following model.
"Category" -- "Codes"
For each category there can be many codes.
I need to $expand the Codes, $filter where Active = true and then $orderby Codes.Description.
Currently the following works fine without ordering.
odata/Categories?$expand=Codes($filter=Active eq true)
This does not work.
odata/Categories?$expand=Codes($filter=Active eq true&$orderby=Description)
I receive "The query specified in the URI is not valid. Syntax error at position 12." & "Syntax error at position 12 in 'Description)'."
Basically it is reading the last ")" after "Description" as an error.