docs: protected List<DoubleDistanceEntry> getSortedEntries(AbstractRStarTreeNode<?, ?> node, DBIDs ids) {
      List<DoubleDistanceEntry> result = new ArrayList<>();
  
      for(int i = 0; i < node.getNumEntries(); i++) {
        SpatialEntry entry = node.getEntry(i);
        double minMinDist = Double.MAX_VALUE;
        for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
          double minDist = distanceFunction.minDist(entry, relation.get(iter));
          tree.statistics.countDistanceCalculation();
          minMinDist = Math.min(minDist, minMinDist);
        }
        result.add(new DoubleDistanceEntry(entry, minMinDist));
      }
  
      Collections.sort(result);
      return result;
    }