Merge pull request #295 from The-OpenROAD-Project-staging/stable_sort

Use stable sort again
This commit is contained in:
Matt Liberty 2026-02-25 19:21:57 +00:00 committed by GitHub
commit 215eeee40c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ void
sort(Range& r,
Comp comp = Comp{})
{
std::sort(std::ranges::begin(r), std::ranges::end(r), comp);
std::stable_sort(std::ranges::begin(r), std::ranges::end(r), comp);
}
@ -423,7 +423,7 @@ void
sort(Range* r,
Comp comp = Comp{})
{
std::sort(std::ranges::begin(*r), std::ranges::end(*r), comp);
std::stable_sort(std::ranges::begin(*r), std::ranges::end(*r), comp);
}
} // namespace