Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OrderBy

import type { OrderBy } from "https://googleapis.deno.dev/v1/analyticsreporting:v4.ts";

Specifies the sorting options.

interface OrderBy {
fieldName?: string;
orderType?:
| "ORDER_TYPE_UNSPECIFIED"
| "VALUE"
| "DELTA"
| "SMART"
| "HISTOGRAM_BUCKET"
| "DIMENSION_AS_INTEGER";
sortOrder?: "SORT_ORDER_UNSPECIFIED" | "ASCENDING" | "DESCENDING";
}

§Properties

§
fieldName?: string
[src]

The field which to sort by. The default sort order is ascending. Example: ga:browser. Note, that you can only specify one field for sort here. For example, ga:browser, ga:city is not valid.

§
orderType?: "ORDER_TYPE_UNSPECIFIED" | "VALUE" | "DELTA" | "SMART" | "HISTOGRAM_BUCKET" | "DIMENSION_AS_INTEGER"
[src]

The order type. The default orderType is VALUE.

§
sortOrder?: "SORT_ORDER_UNSPECIFIED" | "ASCENDING" | "DESCENDING"
[src]

The sorting order for the field.