<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def iter_extensions(self):
 """Iterates over the extensions by priority."""

        return iter(sorted(self.extensions.values(),
                           key=lambda x: x.priority))