Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 5d43b47

Browse files
committed
readme update
1 parent a8a4cee commit 5d43b47

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,23 @@ users_by_score = db.child("users").order_by_child("score").limit_to_first(5).get
313313
```
314314
This query returns the first five users ordered by score.
315315

316+
#### order_by_key
317+
318+
When using ```order_by_key()``` to sort your data, data is returned in ascending order by key.
319+
320+
```python
321+
users_by_key = db.child("users").order_by_key().get()
322+
```
323+
324+
#### order_by_value
325+
326+
When using ```order_by_value()```, children are ordered by their value.
327+
328+
```python
329+
users_by_value = db.child("users").order_by_value().get()
330+
```
331+
332+
316333
## Storage
317334

318335
The storage service allows you to upload images to Firebase.

0 commit comments

Comments
 (0)