Interface: MetricOrderBy\<Field\>
field must be one of the request’s own measures or dimensions — a
measure is ordered by its SELECT alias, because ORDER BY MEASURE(...) is
rejected by Spark (METRIC_VIEW_INVALID_MEASURE_FUNCTION_INPUT). direction
is a closed vocabulary so nothing free-form reaches the SQL string; omitting
it means ASC (the SQL default).
The default MetricOrderBy (equivalent to MetricOrderBy<string>) is the
broad wire/server form. When extracting a reusable orderBy array for
useMetricView, parameterize it with the selected field literals so the hook
can verify that every ordering field was selected.
Type Parameters
Section titled “Type Parameters”Field extends string = string
Properties
Section titled “Properties”direction?
Section titled “direction?”
optionaldirection?:MetricOrderDirection
field:
Field