def _get_sorted_data(self):
        if not self._use_copy:
            return sorted(self.data)
        elif not self._is_sorted:
            self.data.sort()
        return self.data
When using a copy of the data, it's better to have that copy be
dataset/ETHPy150Open mahmoud/boltons/boltons/statsutils.py/Stats._get_sorted_data