docs: def metric_ids(self):
          """ Return the Metrics on this shelf in the order in which
          they were used. """
          return self._sorted_ingredients([
              d.id for d in self.values() if isinstance(d, Metric)
          ])