Sorting on the first relationship in an aggregate
I want to do an aggregate over a m2m table where the order is important, so I write the code below but whatever I do I can't seem to sort on the first table. Should I be able to do that?
Solution
tldr: Calculations 
The solution was to use a calculation on
And then create another calculation on the first resource:
And then I could load everything and produce a super pretty query with the best type annotation.
The solution was to use a calculation on
:some_many_to_one_table that got the phone number: And then create another calculation on the first resource:
And then I could load everything and produce a super pretty query with the best type annotation.
