Ordering by relation in relational query
I am trying to sort on an attribute of a relation using the relational queries api, but as far as I can tell it is not supported?
Example:
Thanks,
J
2 Replies
any updates on this? is it possible?
it does work.
worth noting that I think you might be confusing the tables that you are sorting. in your example
country
in orderBy
is actually your city
table. You might want to use orderBy in your with
section. Here is an example of the difference. Note how I've named the tables: