Skip to content

Commit

Permalink
Merge pull request dubeaud#197 from uspenskiyan/patch-1
Browse files Browse the repository at this point in the history
Order all users list by DisplayName
  • Loading branch information
dubeaud committed Apr 19, 2016
2 parents e196939 + d6a5e9f commit f6ce861
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 f6ce861

Please sign in to comment.