Answer the question
In order to leave comments, you need to log in
How to sort documents in firebase firestore in my own way?
I use Firebase Firestore as a database. And I ran into this problem. The data that I enter into it is sorted by identifier. And I need the sorting to be by id, which is in the document. Or there was no sorting at all when data was written to it. As you can see in the picture, the first document with id 8 is sorted by ID. Of course, I can sort on the client later, as I need, but then I will have problems with requests. That is, how to make it work like in Realtime DB? There, in json, as I entered the data, so they lie.
I see an option to prescribe only identifiers manually, but it seems nonsense. Is there a way I haven't thought of or don't know about?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question