D
D
DARKENN2019-11-06 23:03:10
Java
DARKENN, 2019-11-06 23:03:10

How to sort descending in firebase?

I need to make a rating of players on the internal unit of the game. User table structure: users -> "User ID" -> Monets

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2019-11-06
@DARKENN

filter on the client, https://firebase.google.com/docs/database/web/list...
firebase.database().ref('users').orderByChild('Monets').limitToLast(5)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question