I currently have a app where images are uploaded to firebase and then retrieved when pressing a button. However in firebase they are arranged in alphabetical order. How can I make the "posts" be arranged from newest to oldest post? My DB structure:
{
"Posts" : {
"ThisWouldBeRandomUID" : {
"post:RandomUIDHere" : {
"ImageUrl" : {
"image1" : "https://URLHere",
"image2" : "https://URLHere"
}
}
},
"users" : {
"7AM0CeJ71tYON9NejziFZto16fk2" : {
"email" : "dhhfhfhffhdh@hdhdhdjdh.hehdhdhdh",
"password" : "dhdhdhhdhdhdhdhdhfhf"
}
}
}