def METHOD_NAME():
    field_tree = FieldTree().add_field(
        FieldRow(path="connection", parent=None, type_name="Connection", required=False, default="None", description="", inner_fields=[])
        ).add_field(
        FieldRow(path="connection.path", parent="connection", type_name="string(file-path)", required=True, default="None", description="", inner_fields=[])
        ).add_field(
        FieldRow(path="connection.path", parent="connection", type_name="string(directory-path)", required=True, default="None", description="", inner_fields=[])
        ).add_field(
        FieldRow(path="field_array", parent=None, type_name="array(string)", required=True, default="None", description="", inner_fields=[])        
        )
    field_tree.sort()
    sorted_fields = [f for f in field_tree.get_fields()]