title: Load Contacts list in alphabetic order using CNContact in swift 3
body: <p>i have an Array contain list Contacts has been fetch.
  Here is my sample code</p>
  
  <pre><code>func getData() -&gt; [CNContact]  {
      let contactStore = CNContactStore()
      let keysToFetch = [
          CNContactFormatter.descriptorForRequiredKeys(for: .fullName),
          CNContactEmailAddressesKey,
          CNContactDatesKey
          ] as [Any]
      var allContainers: [CNContainer] = []
      do {
          allContainers = try contactStore.containers(matching: nil)
      } catch {
          print("err")
      }
  
      var listContacts: [CNContact] = []
      for container in allContainers {
          let fetchPredecate = CNContact.predicateForContactsInContainer(withIdentifier: container.identifier)
          do {
              let containerResult = try contactStore.unifiedContacts(matching: fetchPredecate, keysToFetch: keysToFetch as! [CNKeyDescriptor] )
              listContacts.append(contentsOf: containerResult)
          } catch {
  
          }
      }
  
      // sort by name given
      let result = listContacts.sorted(by: {
          (firt: CNContact, second: CNContact) -&gt; Bool in firt.givenName &lt; second.givenName
      })
  
      return result
  }
  </code></pre>
  
  <p>And i need to load to UITableView look like this
  <a href="https://i.stack.imgur.com/nZ74j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nZ74j.png" alt=""></a></p>
  
  <p>so, how can i do that ? Thanks you ! 
  p/s: sorry my bad english</p>