Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save omgbbqhaxx/264ef3cadfcf3ee479aed51b9110022e to your computer and use it in GitHub Desktop.
Save omgbbqhaxx/264ef3cadfcf3ee479aed51b9110022e to your computer and use it in GitHub Desktop.
itemsRef.observe(DataEventType.value) { (snap:DataSnapshot!) -> Void
in
let getHistory = JSON(snap.value!)
//for (key,_):(String, JSON) in self.getHistory {
// self.keyArr.addObject(key)
//}
//self.myarr = self.keyArr.sort({Double($0 as! String)! > Double($1 as! String)!})
print(getHistory)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment