Skip to content

Commit

Permalink
Update UserManager.cs
Browse files Browse the repository at this point in the history
Order all users list by DisplayName.
  • Loading branch information
UspenskiyAN committed Apr 18, 2016
1 parent e196939 commit d6a5e9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BugNET.BLL/UserManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static MembershipUser GetUser(string userName)
/// <returns>Collection of membership users</returns>
public static List<CustomMembershipUser> GetAllUsers()
{
return Membership.GetAllUsers().Cast<CustomMembershipUser>().ToList();
return Membership.GetAllUsers().Cast<CustomMembershipUser>().OrderBy(cmu=> cmu.DisplayName).ToList();
}

/// <summary>
Expand Down Expand Up @@ -494,4 +494,4 @@ public static MembershipUser GetUserByPasswordResetToken(string token)
return string.IsNullOrWhiteSpace(username) ? null : Membership.GetUser(username);
}
}
}
}

0 comments on commit d6a5e9f

Please sign in to comment.