Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Sorting (A-Z) members of roles in PersonaBar #6018

Merged
merged 4 commits into from
May 1, 2024

Conversation

Mostafa-Moafi
Copy link
Contributor

Fix #5994: Sorting (A-Z) members of roles in PersonaBar

Copy link
Contributor

@bdukes bdukes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -246,11 +246,11 @@ public HttpResponseMessage GetRoleUsers(string keyword, int roleId, int pageInde
Localization.GetString("InvalidRequest", Components.Constants.LocalResourcesFile));
}

var users = RoleController.Instance.GetUserRoles(this.PortalId, Null.NullString, role.RoleName);
var users = RoleController.Instance.GetUserRoles(this.PortalId, Null.NullString, role.RoleName).OrderBy(x => x.FullName).ToList();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move the OrderBy call to the beginning of line 260? This would allows us to only specify it once, and avoid creating another copy of the list.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes of course, I fix it.

@bdukes bdukes added this to the 9.13.4 milestone May 1, 2024
Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@valadas valadas merged commit 23f1fa3 into dnnsoftware:develop May 1, 2024
3 checks passed
@valadas valadas changed the title Fix #5994: Sorting (A-Z) members of roles in PersonaBar Added Sorting (A-Z) members of roles in PersonaBar Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Sorting (A-Z) members of roles
3 participants