Skip to content

Commit

Permalink
Merge pull request #307 from dotnet/revert-300-order-by-message
Browse files Browse the repository at this point in the history
Revert "Include a fallback ordering by diagnostic message"
  • Loading branch information
sharwell authored Apr 16, 2019
2 parents f42e01e + 59ca110 commit 8d14755
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,7 @@ private static Diagnostic[] SortDistinctDiagnostics(IEnumerable<Diagnostic> diag
.OrderBy(d => d.Location.GetLineSpan().Path, StringComparer.Ordinal)
.ThenBy(d => d.Location.SourceSpan.Start)
.ThenBy(d => d.Location.SourceSpan.End)
.ThenBy(d => d.Id)
.ThenBy(d => d.GetMessage(), StringComparer.Ordinal)
.ToArray();
.ThenBy(d => d.Id).ToArray();
}

/// <summary>
Expand Down

0 comments on commit 8d14755

Please sign in to comment.