From af7798a9be3a75210b2702e671370ed9b3735542 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Mon, 27 Mar 2017 13:22:25 -0700 Subject: [PATCH] Fix a type error in the tag helper comparison --- .../DefaultRazorSyntaxFactsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorSyntaxFactsService.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorSyntaxFactsService.cs index c971e967e6..6f21fdaa10 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorSyntaxFactsService.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/DefaultRazorSyntaxFactsService.cs @@ -70,7 +70,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor { // These aren't in document order, sort them first and then dig in List attributeNodes = tagHelperNode.Attributes.Select(kvp => kvp.Value).Where(att => att != null).ToList(); - attributeNodes.Sort((x, y) => x.Start.AbsoluteIndex.CompareTo(y.Start)); + attributeNodes.Sort((x, y) => x.Start.AbsoluteIndex.CompareTo(y.Start.AbsoluteIndex)); foreach (SyntaxTreeNode curNode in attributeNodes) {