Fix a type error in the tag helper comparison

This commit is contained in:
Ryan Nowak 2017-03-27 13:22:25 -07:00
parent 8d1cc43f8e
commit af7798a9be
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor
{
// These aren't in document order, sort them first and then dig in
List<SyntaxTreeNode> 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)
{