URL [http://localhost/Customers(42)/Addresses?$orderby=City](http://localhost/Customers(42)/Addresses?$orderby=City)
fails with exception,
```
"message":"Only ordering by properties at the root level is supported for
non-primitive collections. Nested properties and expressions are not supported."
```
```
public class CustomersController : ODataController
{
[Queryable]
public IQueryable<Address> GetAddresses()
{
return new Address[] { }.AsQueryable();
}
}
public class Customer
{
public string IDD { get; set; }
public Address[] Addresses { get; set; }
}
public class Address
{
public int City { get; set; }
}
```
fails with exception,
```
"message":"Only ordering by properties at the root level is supported for
non-primitive collections. Nested properties and expressions are not supported."
```
```
public class CustomersController : ODataController
{
[Queryable]
public IQueryable<Address> GetAddresses()
{
return new Address[] { }.AsQueryable();
}
}
public class Customer
{
public string IDD { get; set; }
public Address[] Addresses { get; set; }
}
public class Address
{
public int City { get; set; }
}
```