title: Firebase query ordering by child not working
body: <p>I try to sort my table view content with creation date. The newest should be above. My code seems ok but it does not show the correct order. It is the opposite.</p>
  <pre><code>ref = Database.database().reference().child(&quot;placeID/\(placeIdFromSearch)&quot;)
  ref.queryOrdered(byChild: &quot;userTime&quot;).queryLimited(toLast: 10).observe(DataEventType.value, with: {(snapshot) in
      
      if snapshot.childrenCount &gt; 0 {
          self.table.removeAll()
          
          for video in snapshot.children.allObjects as! [DataSnapshot] {
              
              let Object = video.value as? [String: AnyObject]
              
              let userName = Object?[&quot;userName&quot;]
              let userGroup = Object?[&quot;userGroup&quot;]
              let userComment = Object?[&quot;userComment&quot;]
              let userTime = Object?[&quot;userTime&quot;]
              let userLikes = Object?[&quot;userLikes&quot;]
              
              let video = Videos(userName: userName as! String, userGroup: userGroup as! String, userComment: userComment as! String, userTime: userTime as! Int, userLikes: userLikes as! String)
              self.table.append(video)
              self.tableView.reloadData()
              
          }
      }    
  })
  </code></pre>
  <p><img src="https://i.stack.imgur.com/KVW90.png" alt="enter image description here" /></p>