docs-devsite/firestore_lite_pipelines.ordering.md
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 %}
Represents an ordering criterion for sorting documents in a Firestore pipeline.
You create Ordering instances using the ascending and descending helper functions.
<b>Signature:</b>
export declare class Ordering
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(expr, direction, _methodName) | Constructs a new instance of the <code>Ordering</code> class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| direction | 'ascending' | 'descending' | ||
| expr | Expression |
Constructs a new instance of the Ordering class
<b>Signature:</b>
constructor(expr: Expression, direction: 'ascending' | 'descending', _methodName: string | undefined);
| Parameter | Type | Description |
|---|---|---|
| expr | Expression | |
| direction | 'ascending' | 'descending' | |
| _methodName | string | undefined |
<b>Signature:</b>
readonly direction: 'ascending' | 'descending';
<b>Signature:</b>
readonly expr: Expression;