def METHOD_NAME(self, type):
    """ get the ordering """
    result = []
    for child, ancestry in type.resolve():
        name = child.name
        if child.name is None:
            continue
        if child.isattr():
            name = '_%s' % child.name
        result.append(name)
    return result