def get_datapoints(self, metric):
    return sorted(self.get(metric, {}).items(), key=by_timestamp)
Return a list of currently cached datapoints sorted by timestamp
dataset/ETHPy150Open graphite-project/carbon/lib/carbon/cache.py/_MetricCache.get_datapoints