docs: protected List<DoubleObjPair<RdKNNEntry>> getSortedEntries(AbstractRStarTreeNode<?, ?> node, SpatialComparable q, SpatialPrimitiveDistanceFunction<?> distanceFunction) {
      List<DoubleObjPair<RdKNNEntry>> result = new ArrayList<>();
  
      for(int i = 0; i < node.getNumEntries(); i++) {
        RdKNNEntry entry = (RdKNNEntry) node.getEntry(i);
        double minDist = distanceFunction.minDist(entry, q);
        result.add(new DoubleObjPair<>(minDist, entry));
      }
  
      Collections.sort(result);
      return result;
    }