I am storing Ideas posted by the application in Firestore. The data is stored in Firestore like this Ideas/{documentID}/IdeaObject. The issue is when I retr
In my case, the vanilla version would be,
firestoreDb.collection("ideas")
.orderBy("timestamp", "asc")
firestoreDb.collection("ideas")
.orderBy("timestamp", "desc")
"ideas" is the name of your collection
"timestamp" is the key or field or column name to be used for sorting.
"asc" or "desc" is the option to be used for the order