sort_report_diagnostics

Function sort_report_diagnostics 

Source
fn sort_report_diagnostics(
    left: &DiagnosisResult,
    right: &DiagnosisResult,
) -> Ordering
Expand description

Order diagnostics for the final report.

This is intentionally different from scan::sort_diagnoses: scan modules keep their own source-local ordering, while the final report groups all collected diagnostics by severity first so the UI reads from errors to warnings.