<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def dimension_ids(self):
 """ Return the Dimensions 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, Dimension)
        ])