Skip to content
This repository was archived by the owner on Mar 20, 2019. It is now read-only.

Commit e774db2

Browse files
Merge pull request #383 from agametov/develop
fix sort endpoints
2 parents 369182b + d743a32 commit e774db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNetOpenAuth.OpenId.RelyingParty/OpenId/RelyingParty/AuthenticationRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ private static List<IdentifierDiscoveryResult> FilterAndSortEndpoints(IEnumerabl
510510
}
511511

512512
// Sort endpoints so that the first one in the list is the most preferred one.
513-
filteredEndpoints.OrderBy(ep => ep, relyingParty.EndpointOrder);
513+
filteredEndpoints = filteredEndpoints.OrderBy(ep => ep, relyingParty.EndpointOrder).ToList();
514514

515515
var endpointList = new List<IdentifierDiscoveryResult>(filteredEndpoints.Count);
516516
foreach (var endpoint in filteredEndpoints) {

0 commit comments

Comments
 (0)