code: def sorted_migrations(self):
          if not self._sorted_migrations:
              self._sorted_migrations = sorted(
                  self.migration_registry.items(),
                  key=lambda migration_tuple: migration_tuple[0])
          return self._sorted_migrations