{
    "title": "orderByFields",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "Object indicating the field display order for the related records and whether they should be sorted in ascending or descending order.",
    "properties": {
        "field": {
            "type": "string",
            "description": "The attribute value of the field selected that will drive the sorting of related records."
        },
        "order": {
            "type": "string",
            "description": "Set the ascending or descending sort order of the returned related records.",
            "enum": [
                "asc",
                "desc"
            ]
        }
    },
    "esriDocumentation": {
        "examples": [
            {
                "title": "orderByFields",
                "code": {
                    "orderByFields": [
                        {
                            "field": "relationships/0/FieldName",
                            "order": "asc"
                        }
                    ]
                }
            }
        ]
    }
}