Developers » Data API » Reporting API v3 » Parameters » Sort by
Sort by
Foreword
The "-"
allows you to sort in a decreasing way.
It is possible to sort on as many columns (metrics and properties) as desired.
It is not possible to sort on a column not present in the “columns” parameter of the URL.
Examples:
// Simple sorting: "space": { "s":[547656] }, // If you have 2 periods, you can sort on the comparison period metric values: "space": { "s":[547656, 547657] }, // You can filter on several metrics and several properties: "sort": [ "-geo_country", "device_type", "-m_visits", "m_users" ]
# Simple sorting: "space": { "s":[547656] }, # If you have 2 periods, you can sort on the comparison period metric values: "space": { "s":[547656, 547657] }, # You can filter on several metrics and several properties: "sort": [ "-geo_country", "device_type", "-m_visits", "m_users" ]
# Simple sorting: "space": { "s":[547656] }, # If you have 2 periods, you can sort on the comparison period metric values: "space": { "s":[547656, 547657] }, # You can filter on several metrics and several properties: "sort": [ "-geo_country", "device_type", "-m_visits", "m_users" ]
# Simple sorting: "space": { "s":[547656] }, # If you have 2 periods, you can sort on the comparison period metric values: "space": { "s":[547656, 547657] }, # You can filter on several metrics and several properties: "sort": [ "-geo_country", "device_type", "-m_visits", "m_users" ]
Last update: 04/05/2021