           key = "#"
         }
 
-        if let friends = self.sortedFriends[key] {
+        if let friends = self.sortedContacts[key] {
           sorted = friends
         }
         sorted.append(friend.fbid)
-        self.sortedFriends[key] = sorted
+        self.sortedContacts[key] = sorted
         onMain {
           completion()
         }

class FriendsDataSource: TableDataSource {
  var cells = [CellInfo]()

  var selectedFriends = [String]()
  var sortedFriends = [String: [String]]()

  func reload(completion: @escaping () -> Void) {
    if cells.isEmpty {

  func tableView(_ tableView: UITableView,
                 didDeselectRowAt indexPath: IndexPath) {
    if let cell = tableView.cellForRow(at: indexPath) {
      guard let contact = self.contact(for: indexPath) else { return }
      unselectContact(fbid: contact)
      cell.accessoryType = .none
    }
  }
