         var queryUser = PFUser.query() as PFQuery?
         queryUser!.findObjectsInBackgroundWithBlock {
             (users: [AnyObject]?, error: NSError?) -> Void in
-            
+            queryUser!.orderByDescending("createdAt")
             //self.tableView.reloadData()
-            queryUser!.whereKey("username", equalTo: self.userArray[self.userArray.count-indexPath.row-1])
+            queryUser!.whereKey("username", equalTo: self.userArray[indexPath.row])
             if error == nil {
                 // The find succeeded.
                 println("Successfully retrieved \(users!.count) users.")

    
    func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        self.tableView.deselectRowAtIndexPath(indexPath, animated: true)
        selectedName = userArray[userArray.count-indexPath.row-1]
        selectedScore = String(score[userArray.count - indexPath.row-1])
        //let destinationVC = profileVC()
        //destinationVC.name = selectedName
        performSegueWithIdentifier("profileView", sender: self)

            userArray.removeAll(keepCapacity: false)
            score.removeAll(keepCapacity: false)
            createdAt.removeAll(keepCapacity: false)
            query.orderByDescending("createdAt")
            query.whereKey("text", notEqualTo: "")
            query.findObjectsInBackgroundWithBlock({ (objects, error) -> Void in
                //self.createdAt.append("gwef")
