diff --git a/Core/include/Acts/Seeding/HoughTransformUtils.ipp b/Core/include/Acts/Seeding/HoughTransformUtils.ipp index b0bfc4511e4..d26607d37ea 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, std::greater{}, [&yieldMap](const auto c) { + std::ranges::sort(candidates, std::greater{}, [&yieldMap](std::size_t c) { return std::tie(yieldMap[c], c); });