I have 7 roles in my project. I arranged them by weight in admin/people/permissions/roles page Add the sort criteria Global:PHP with code
But users display with no sort on role weight on page.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
Look for these solutions:
This way you can get your desired result. Hope this helps.