Start a new topic

Sort one collection by a reference property value?

I have 2 collections: users and groups. User have a reference to groups. How can I sort users by group name?
1 Comment

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.
Login or Signup to post a comment