fn sort_report_diagnostics(
left: &DiagnosisResult,
right: &DiagnosisResult,
) -> OrderingExpand 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.