i have tried this code
let newRef = Database.database().reference().root.child("recentlocations").child(Auth.auth().currentUser!.id)
but its return data in ascending order and i want to get data in reverse order means in descending order. So what i have to do for that purpose?