voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
20 lines (11 loc) • 653 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [orderByPriority](./database.orderbypriority.md)
## orderByPriority() function
Creates a new `QueryConstraint` that orders by priority.
Applications need not use priority but can order collections by ordinary properties (see [Sort data](https://firebase.google.com/docs/database/web/lists-of-data#sort_data) for alternatives to priority.
<b>Signature:</b>
```typescript
export declare function orderByPriority(): QueryConstraint;
```
<b>Returns:</b>
[QueryConstraint](./database.queryconstraint.md)