Sort one collection by a reference property value?
started a topic
almost 6 years ago
I have 2 collections: users and groups. User have a reference to groups. How can I sort users by group name?
over 5 years ago
This is not possible - the only workaround could be sorting on the client (or in a business logic post-fetch hook). This will however only work if you retrieve all data (i.e. no limit), otherwise this will yield incorrect results.