diff options
author | agametov <agametov@gmail.com> | 2016-03-16 20:20:21 +0300 |
---|---|---|
committer | agametov <agametov@gmail.com> | 2016-03-16 20:20:21 +0300 |
commit | 65ddb94de36f772b9a3bee165be012b9ad1f43f0 (patch) | |
tree | 89901211a2201606569e29efc8721d983a5799be | |
parent | 369182b4eeb189cd38b87b1f31bd624f55ce96e0 (diff) | |
download | DotNetOpenAuth-65ddb94de36f772b9a3bee165be012b9ad1f43f0.zip DotNetOpenAuth-65ddb94de36f772b9a3bee165be012b9ad1f43f0.tar.gz DotNetOpenAuth-65ddb94de36f772b9a3bee165be012b9ad1f43f0.tar.bz2 |
fix sort endpoints
-rw-r--r-- | src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/AuthenticationRequest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/AuthenticationRequest.cs b/src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/AuthenticationRequest.cs index fcdc465..3a7a5f9 100644 --- a/src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/AuthenticationRequest.cs +++ b/src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/AuthenticationRequest.cs @@ -509,8 +509,8 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { } } - // Sort endpoints so that the first one in the list is the most preferred one. - filteredEndpoints.OrderBy(ep => ep, relyingParty.EndpointOrder); + // Sort endpoints so that the first one in the list is the most preferred one. + filteredEndpoints = filteredEndpoints.OrderBy(ep => ep, relyingParty.EndpointOrder).ToList(); var endpointList = new List<IdentifierDiscoveryResult>(filteredEndpoints.Count); foreach (var endpoint in filteredEndpoints) { |