Remove sorting
This commit is contained in:
parent
5349858836
commit
0a0ebc1934
@ -74,13 +74,7 @@ template <typename RTreeT, typename DataFacadeT> class GeospatialQuery
|
|||||||
: std::make_pair(true, true));
|
: std::make_pair(true, true));
|
||||||
return valid;
|
return valid;
|
||||||
});
|
});
|
||||||
auto phantom_nodes = MakePhantomNodes(input_coordinate, results);
|
return MakePhantomNodes(input_coordinate, results);
|
||||||
// there is no guarantee that `SearchInRange` will return results sorted by distance,
|
|
||||||
// but we may rely on it somewhere
|
|
||||||
std::sort(phantom_nodes.begin(),
|
|
||||||
phantom_nodes.end(),
|
|
||||||
[](const auto &lhs, const auto &rhs) { return lhs.distance < rhs.distance; });
|
|
||||||
return phantom_nodes;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns max_results nearest PhantomNodes that are valid within the provided parameters.
|
// Returns max_results nearest PhantomNodes that are valid within the provided parameters.
|
||||||
|
Loading…
Reference in New Issue
Block a user