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)](https://firebase.google.com/docs/reference/js/firestore_lite_pipelines.ordering#orderingconstructor) |   | Constructs a new instance of the `Ordering` class |

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [direction](https://firebase.google.com/docs/reference/js/firestore_lite_pipelines.ordering#orderingdirection) |   | 'ascending' \| 'descending' |   |
| [expr](https://firebase.google.com/docs/reference/js/firestore_lite_pipelines.ordering#orderingexpr) |   | [Expression](https://firebase.google.com/docs/reference/js/firestore_lite_pipelines.expression#expression_class) |   |

## 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](https://firebase.google.com/docs/reference/js/firestore_lite_pipelines.expression#expression_class) |   |
| direction | 'ascending' \| 'descending' |   |
| _methodName | string \| undefined |   |

## Ordering.direction

**Signature:**

    readonly direction: 'ascending' | 'descending';

## Ordering.expr

**Signature:**

    readonly expr: Expression;