voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
22 lines (12 loc) • 707 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [orderByValue](./database.orderbyvalue.md)
## orderByValue() function
Creates a new `QueryConstraint` that orders by value.
If the children of a query are all scalar values (string, number, or boolean), you can order the results by their (ascending) values.
You can read more about `orderByValue()` in [Sort data](https://firebase.google.com/docs/database/web/lists-of-data#sort_data)<!-- -->.
<b>Signature:</b>
```typescript
export declare function orderByValue(): QueryConstraint;
```
<b>Returns:</b>
[QueryConstraint](./database.queryconstraint.md)