Order bys define how rows will be sorted in the response. For example, ordering rows by descending access count is one ordering, and ordering rows by the country string is a different ordering.
JSON representation
{"desc": boolean,// Union field one_order_by can be only one of the following:"metric": {object (MetricOrderBy)},"dimension": {object (DimensionOrderBy)}// End of list of possible types for union field one_order_by.}
Fields
desc
boolean
If true, sorts by descending order. If false or unspecified, sorts in ascending order.
Union field one_order_by. Specify one type of order by for OrderBy. one_order_by can be only one of the following:
Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < "b" < "z".
CASE_INSENSITIVE_ALPHANUMERIC
Case insensitive alphanumeric sort by lower case Unicode code point. For example, "2" < "A" < "b" < "X" < "z".
NUMERIC
Dimension values are converted to numbers before sorting. For example in NUMERIC sort, "25" < "100", and in ALPHANUMERIC sort, "100" < "25". Non-numeric dimension values all have equal ordering value below all numeric values.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-02 UTC."],[[["OrderBys determine the sorting of rows in responses, such as by access count or country."],["You can order by metrics (like values) or dimensions (like country or date)."],["Ordering can be ascending (default) or descending, controlled by the `desc` boolean."],["Dimension ordering further offers alphanumeric, case-insensitive alphanumeric, and numeric options for string values."]]],["The content defines how to sort rows in a response using \"OrderBys.\" Sorting can be ascending or descending via a boolean `desc`. Rows are sorted by either `metric` values, specified by `metricName`, or by `dimension` values, specified by `dimensionName`. For dimensions, `orderType` controls the sorting rule. `orderType` supports `ALPHANUMERIC`, `CASE_INSENSITIVE_ALPHANUMERIC`, or `NUMERIC`. The `MetricOrderBy` and `DimensionOrderBy` structures are used to define the criteria of sorting.\n"]]