Indicates the metric to sort topN results by, e.g. “count” in this example:
This metric specification sorts TopN results by dimension value.
Possible sorting orders are:
|Sorts values by converting Strings to their UTF-8 byte array representations and comparing lexicographically, byte-by-byte.|
|Suitable for strings with both numeric and non-numeric content. |
|Sorts values as numbers.|
|Sorts values by their string lengths. When there is a tie, this comparator falls back to using the String |
|Sorts values as versions. |
Inverts the order of the delegate metric spec and sorts dimension values in inverted order. It can be used to sort the values in ascending order.