From c32bafa7102060e2e33966691cb04d69eb00afe8 Mon Sep 17 00:00:00 2001 From: Sagi Amangeldi Date: Thu, 5 Nov 2026 14:08:59 +0900 Subject: [PATCH] Compare heights as double in lowest-point sort --- apps/precision_forestry_tools/precision_forestry_tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/precision_forestry_tools/precision_forestry_tools.cpp b/apps/precision_forestry_tools/precision_forestry_tools.cpp index 7dbdad78c..df31b7ca1 100644 --- a/apps/precision_forestry_tools/precision_forestry_tools.cpp +++ b/apps/precision_forestry_tools/precision_forestry_tools.cpp @@ -174,7 +174,7 @@ std::vector get_lowest_points_indexes(const std::vector& p std::sort( indexes_tuple.begin(), indexes_tuple.end(), - [](const std::tuple& a, const std::tuple& b) + [](const std::tuple& a, const std::tuple& b) { return (std::get<0>(a) == std::get<0>(b)) ? (std::get<2>(a) < std::get<2>(b)) : (std::get<0>(a) < std::get<0>(b)); });