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

orderBy

Creates a QueryOrderByConstraint that sorts the query result by the specified field, optionally in descending order instead of ascending.

Note: Documents that do not contain the specified field will not be present in the query result.

function orderBy(fieldPath: string | FieldPath, directionStr?: OrderByDirection): QueryOrderByConstraint;
§
orderBy(fieldPath: string | FieldPath, directionStr?: OrderByDirection): QueryOrderByConstraint
[src]

§Parameters

§
fieldPath: string | FieldPath
[src]
  • The field to sort by.
§
directionStr?: OrderByDirection optional
[src]
  • Optional direction to sort by ('asc' or 'desc'). If not specified, order will be ascending.