================ @@ -98,10 +94,31 @@ void RenderDiagnosticDetails(Stream &stream, continue; } - auto &loc = *detail.source_location; remaining_details.push_back(detail); + } + + // Sort the diagnostics. + auto sort = [](auto &ds) { + std::sort(ds.begin(), ds.end(), [](auto &d1, auto &d2) { ---------------- JDevlieghere wrote:
```suggestion llvm::sort(ds.begin(), ds.end(), [](auto &d1, auto &d2) { ``` https://github.com/llvm/llvm-project/pull/112451 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits