mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
1.8 KiB
1.8 KiB
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
Ordering class
Represents an ordering criterion for sorting documents in a Firestore pipeline.
You create Ordering instances using the ascending and descending helper functions.
Signature:
export declare class Ordering
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(expr, direction, _methodName) | Constructs a new instance of the Ordering class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| direction | 'ascending' | 'descending' | ||
| expr | Expression |
Ordering.(constructor)
Constructs a new instance of the Ordering class
Signature:
constructor(expr: Expression, direction: 'ascending' | 'descending', _methodName: string | undefined);
Parameters
| Parameter | Type | Description |
|---|---|---|
| expr | Expression | |
| direction | 'ascending' | 'descending' | |
| _methodName | string | undefined |
Ordering.direction
Signature:
readonly direction: 'ascending' | 'descending';
Ordering.expr
Signature:
readonly expr: Expression;