pub fn sort_diags(diags: Vec<Diag>) -> Vec<Diag>
§6.7: evaluation- and validation-time diagnostics sort by (path, id), path in canonical order; stable