Skip to content

Commit

Permalink
Merge pull request #6018 from Mostafa-Moafi/Issue5994
Browse files Browse the repository at this point in the history
Fix #5994: Sorting (A-Z) members of roles in PersonaBar
  • Loading branch information
valadas authored May 1, 2024
2 parents 787c83d + 8090821 commit 23f1fa3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public HttpResponseMessage GetRoleUsers(string keyword, int roleId, int pageInde
var totalRecords = users.Count;
var startIndex = pageIndex * pageSize;
var portal = PortalController.Instance.GetPortal(this.PortalId);
var pagedData = users.Skip(startIndex).Take(pageSize).Select(u => new UserRoleDto()
var pagedData = users.OrderBy(x => x.FullName).Skip(startIndex).Take(pageSize).Select(u => new UserRoleDto()
{
UserId = u.UserID,
RoleId = u.RoleID,
Expand Down

0 comments on commit 23f1fa3

Please sign in to comment.