Hello, I am using Firebase as as backend.
I have array of songs.
Every song have ‘lastCommentAt’ property, which is the time of the last comment in song (you can comment in every song):
songData.lastCommentAt = Firebase.ServerValue.TIMESTAMP;
Now I want to fetch all of my songs in order of last comments.
Songs feed example:
- song #341 - last comment in 2 minutes
- song #2287 - last comment in 51 minutes
- song #187 - last comment in 3 hours
I already tried ‘.indexOn’ but it’s not helping.
The current situation is that the feed is order by create time. I want it to order by lastComment time.