We want to make an OData request like so: abc.xyz/odata/v4/Service.svc/Entity?$orderby=nullableNumericField. nullableNumericField is a numeric field that may be null. The mock server regards 0 and null as the same value, thus when sorted entities with these 2 values are mixed together (while other entities with other numeric values are sorted properly). To illustrate, this is a potential response:
Related Feature
Mock server
Description
We want to make an OData request like so:
abc.xyz/odata/v4/Service.svc/Entity?$orderby=nullableNumericField
.nullableNumericField
is a numeric field that may benull
. The mock server regards0
andnull
as the same value, thus when sorted entities with these 2 values are mixed together (while other entities with other numeric values are sorted properly). To illustrate, this is a potential response:We have tested this query with our actual backend service (a CAP microservice) and the sorting worked fine.
Expected results
null
should be sorted before0
Actual results
See above