I have posts by users and I want to get all posts of one user in the right order (by the time posted).
So I need something like this:
Query query = reference
.child("Posts")
.orderByChild("user_id")
.equalTo(given_user_id)
.orderByChild("negative_timestamp");
But that doesn't work because Firebase only allows one orderByChild()
call in a Query.
How to solve this?