The OrderBy type contains the ORDER BY definition for a report, if ORDER BY is specified for the report. The OrderBy type parameters are listed below.


Name Type Description
firstFieldName string The first field used to order report results.
secondFieldName string The second field used to order report results.


The OrderBy type describes which field or fields are used to order the results returned in a report. OrderBy may have an empty return value even though certain fields are designated in the report definition to sort the results.


The following XML snippet shows the OrderBy type in the reportDefinition element of the RunReport response.