Sort one collection by a reference property value?
a
adrianaNik
started a topic
over 6 years ago
I have 2 collections: users and groups. User have a reference to groups. How can I sort users by group name?
1 Comment
M
Mark
said
over 6 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.
adrianaNik