I am storing data in Firebase storage.
Object Comment with attribute timestamp. When I push data from device to Firebase I\'m populating
Comment
timestamp
Swift 3:
let query = firebase.child(YourQueryPath).queryOrdered(byChild: YourQueryChild).queryLimited(toLast: YourLimit) query.observeSingleEvent(of: .value, with: { (snapshot) in // Reverse order here to get top **YourLimit** results in descending order })