parameters: (self, nclass)
return_statement: return sorted_parents
docstring: returns the sorted list of parents for a native class
docstring_summary: returns the sorted list of parents for a native class
docstring_tokens: returns the sorted list of parents for a native class
function: def _sorted_parents(self, nclass):
          '''
          returns the sorted list of parents for a native class
          '''
          sorted_parents = []
          for p in nclass.parents:
              if p.class_name in self.generated_classes.keys():
                  sorted_parents += self._sorted_parents(p)
          if nclass.class_name in self.generated_classes.keys():
              sorted_parents.append(nclass.class_name)
          return sorted_parents
function_tokens: def _sorted_parents ( self , nclass ) : sorted_parents = [ ] for p in nclass . parents : if p . class_name in self . generated_classes . keys ( ) : sorted_parents += self . _sorted_parents ( p ) if nclass . class_name in self . generated_classes . keys ( ) : sorted_parents . append ( nclass . class_name ) return sorted_parents