【发布时间】:2019-04-10 10:42:09
【问题描述】:
我目前有一个应用程序,其中图像被上传到 firebase,然后在按下按钮时检索。但是在firebase中,它们是按字母顺序排列的。如何使“帖子”从最新到最旧的帖子排列? 我的数据库结构:
{
"Posts" : {
"ThisWouldBeRandomUID" : {
"post:RandomUIDHere" : {
"ImageUrl" : {
"image1" : "https://URLHere",
"image2" : "https://URLHere"
}
}
},
"users" : {
"7AM0CeJ71tYON9NejziFZto16fk2" : {
"email" : "dhhfhfhffhdh@hdhdhdjdh.hehdhdhdh",
"password" : "dhdhdhhdhdhdhdhdhfhf"
}
}
}
【问题讨论】:
标签: ios iphone swift firebase firebase-realtime-database