A `QueryOrderByConstraint` is used to sort the set of documents returned by a Firestore query. `QueryOrderByConstraint`s are created by invoking [orderBy()](https://firebase.google.com/docs/reference/js/firestore#orderby_006d61f) and can then be passed to [query()](https://firebase.google.com/docs/reference/js/firestore#query_9f7b0f4) to create a new query instance that also contains this `QueryOrderByConstraint`.

> [!NOTE]
> **Note:** Documents that do not contain the orderBy field will not be present in the query result.

**Signature:**

    export declare class QueryOrderByConstraint extends QueryConstraint 

**Extends:** [QueryConstraint](https://firebase.google.com/docs/reference/js/firestore.queryconstraint#queryconstraint_class)

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [type](https://firebase.google.com/docs/reference/js/firestore.queryorderbyconstraint#queryorderbyconstrainttype) |   | (not declared) | The type of this query constraint |

## QueryOrderByConstraint.type

The type of this query constraint

**Signature:**

    readonly type = 'orderBy';