                 
                 self.users = self.fromUsers
                 
+                self.users.sortInPlace({ (contact1, contact2) -> Bool in
+                    return contact1.username < contact2.username
+                })
+                
                 dispatch_async(dispatch_get_main_queue(), { () -> Void in
                     
                     self.friendsTableView.reloadData()

    }
    
    func outsidePendingSegment() {
        friendsTableView.tableHeaderView = nil
        self.resultSearchController.active = false
    }

                                    self.users.removeAll(keepCapacity: false)
                                    self.users = twitterUsers as! [TGUser]
                                    
                                    self.users.sortInPlace({ (contact1, contact2) -> Bool in
                                        return contact1.username < contact2.username
                                    })
                                    
                                    dispatch_async(dispatch_get_main_queue(), { () -> Void in
                                        self.twitterLogInButton.hidden = true
                                        self.friendsTableView.reloadData()
