code: def orderedclasses(self, set_uri_or_id=None, nestedhierarchy=False):
          
          classes = self.classes(set_uri_or_id, nestedhierarchy)
          for classid in self.classorder(classes):
              yield classes[classid]
docs: Higher-order generator function that yields class information in the right order, combines calls to :meth:`SetDefinition.classes` and :meth:`SetDefinition.classorder`