GroupBySorter specifies the sorting method of items in a group. You can specify one of the three sorting methods. By default, row_count_sort is used.
Data structure
message GroupBySorter {
optional GroupKeySort group_key_sort = 1;
optional RowCountSort row_count_sort = 2;
optional SubAggSort sub_agg_sort = 3;
}
Parameter | Type | Required | Description |
group_key_sort | No | Specifies to sort items based on the grouping keys. | |
row_count_sort | No | Specifies to sort items based on the order of rows in the group. | |
sub_agg_sort | No | Specifies to sort items based on the sub-aggregation results. |