diff --git a/Core/include/Acts/Seeding/HoughTransformUtils.ipp b/Core/include/Acts/Seeding/HoughTransformUtils.ipp index bf4d839a8b6..b0bfc4511e4 100644 --- a/Core/include/Acts/Seeding/HoughTransformUtils.ipp +++ b/Core/include/Acts/Seeding/HoughTransformUtils.ipp @@ -264,7 +264,7 @@ Acts::HoughTransformUtils::PeakFinders::IslandsAroundMax< } } // sort the candidate cells descending in content - std::ranges::sort(candidates, {}, [&yieldMap](const auto c) { + std::ranges::sort(candidates, std::greater{}, [&yieldMap](const auto c) { return std::tie(yieldMap[c], c); });