Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I don't succeed at grouping users by roles, one role at a time.
Take 2 fields:
- user
- roles
Take this set of user roles:
- user1 : roleA, roleB
- User2 : roleA
- User3 : roleB
I wish to get the following output:
RoleA
- User1
- User2
RoleB:
- User1
- User3
If I group by role, I get:
RoleA, RoleB
- User1
RoleA
- User2
RoleB
- User3
Thanks for help
Comments
Comment #1
MustangGB CreditAttribution: MustangGB commented