Open AiHaibara opened 4 years ago
$expand nested $orderby multiple column result incorrect.
OData WebApi lib 7.2.2, EntityframeworkCore 2.2.4 NetCore2.2 OData WebApi lib 7.3.0, EntityframeworkCore 3.1.2 NetCore3.1
https://localhost:44353/api/datas?$filter=DataId eq '00000000000000012345 '&$expand=Detail($orderby=Index,Side;$select=Index,Side)
{ "@odata.context": "https://localhost:44353/api/$metadata#Datas(Detial(Side,Index))", "value": [ { "DataId": "00000000000000012345 ", "Detail": [ { "Index": 1, "Side": 0 }, { "Index": 1, "Side": 1 }, { "Index": 2, "Side": 0 }, { "Index": 2, "Side": 1 } ] } ] }
{ "@odata.context": "https://localhost:44353/api/$metadata#Datas(Detial(Side,Index))", "value": [ { "DataId": "00000000000000012345 ", "Detail": [ { "Index": 1, "Side": 0 }, { "Index": 1, "Side": 1 }, { "Index": 2, "Side": 1 }, { "Index": 2, "Side": 0 } ] } ] }
Hello, any message about this?
$expand nested $orderby multiple column result incorrect.
Assemblies affected
OData WebApi lib 7.2.2, EntityframeworkCore 2.2.4 NetCore2.2 OData WebApi lib 7.3.0, EntityframeworkCore 3.1.2 NetCore3.1
Reproduce steps
Expected result
Actual result