Hello guys,
I have a list of images that i would like the pictures to show from new to old. I tries doing ".orderBy("timestamp"), where timestap is the time. It shows from old to new. Is there a way to make it so it shows from new to old?
Please help!
Thanks a lot.
getImagesByFolderAndUserId(User user, String folderId) {
return Firestore.instance
.collection(APIConstants.FIRESTORE_IMAGES_COLLECTION_NAME).orderBy("timestamp") // that is what i added
.where("userid", isEqualTo: user.uid)
.where("folderid", isEqualTo: folderId)
.snapshots();
}