Skip to content

Commit

Permalink
Diagnostic order needs to consider both location and ID
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Nov 8, 2015
1 parent 8831b09 commit 50b9d4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ protected virtual Project CreateProject(string[] sources, string language = Lang
/// <see cref="Diagnostic.Location"/>.</returns>
private static Diagnostic[] SortDistinctDiagnostics(IEnumerable<Diagnostic> diagnostics)
{
return diagnostics.OrderBy(d => d.Location.SourceSpan.Start).ToArray();
return diagnostics.OrderBy(d => d.Location.SourceSpan.Start).ThenBy(d => d.Id).ToArray();
}

/// <summary>
Expand Down

0 comments on commit 50b9d4d

Please sign in to comment.