diff --git a/src/aliceVision/fuseCut/DelaunayGraphCut.cpp b/src/aliceVision/fuseCut/DelaunayGraphCut.cpp
index 67fac2d..aac4fdb 100644
--- a/src/aliceVision/fuseCut/DelaunayGraphCut.cpp
+++ b/src/aliceVision/fuseCut/DelaunayGraphCut.cpp
@@ -138,12 +138,23 @@ class SmallerPixSizeInRadius
             }
         }
         return true;
     }
 
     inline DistanceType worstDist() const { return radius; }
+
+    inline void sort() {
+        /*
+          This must exist to satisfy the api change in nanoflann 1.6.0:
+
+            https://github.com/jlblancoc/nanoflann/commit/a74fc3b5b359c941d9a00eb9d92c2202c22eca3a
+
+          The old behavior didn't sort stuff, even when "sorted" was true, so
+          doing nothing here is compatible with the old behavior
+         */
+    }
 };
 #endif
 
 class Tree
 {
     std::unique_ptr<KdTree> _tree;
