so im trying to see if there's a way to order the specific documents from most recent to oldest is there a way to do it from firestore? or do I have to code it ?
this is the code on how I get the specific document ids im just using UUID().string which generated one for me
func quoteMeVariables(){
let quotemodel = quoteME()
quotemodel.quoteMEid = UUID().uuidString
quotemodel.author = authorTextfield.text
quotemodel.QuoteText = quoteMeTextfield.text
quotemodel.saveQuoteMetoFirebase(quotemodel) //
hud.textLabel.text = "Your Quote Has Been Sent Successfully!"
hud.show(in: self.view)
hud.indicatorView = JGProgressHUDSuccessIndicatorView()
hud.dismiss(afterDelay: 3.0)
DispatchQueue.main.asyncAfter(deadline: .now() + 3.0){
self.dismiss(animated: true, completion: nil)
}
}