Sorting

The sorting parameter expects a JSON object which is made up of the following:

events (string)—The value with which the event names are to be sorted. Possible values are alpha (alphabetical sorting), eventCounts, or uniqueUsersUsedAtLeastOnce.
eventsDirection (string)—Whether to sort event names in ascending or descending order. Possible values are asc or desc.
segments (string)—The value with which the segments are to be sorted. Possible values are alpha (alphabetical sorting), active (sorting by count of active users), eventCounts, uniqueUsersUsedAtLeastOnce, or percentUsedAtLeastOnce.
segmentsDirection (string)—Whether to sort segments in ascending or descending order. Possible values are asc or desc.