UNPKG

voluptasmollitia

Version:
20 lines (11 loc) 653 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [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)