title: Android: Contact list has duplicate names
body: <p>I have a contact list in a sort order. But in my contact list the name is duplicating with same number. I think the issue is because of the contact list sync with different account.</p>
  
  <p>I check with Hash map. But when I using hash map the result is not sorted with name .</p>
  
  <pre><code>private static final String[] PROJECTION = new String[] {
      ContactsContract.CommonDataKinds.Phone.CONTACT_ID,
      ContactsContract.Contacts.DISPLAY_NAME,
      ContactsContract.CommonDataKinds.Phone.NUMBER
  };
  
  ContentResolver cr = getContentResolver();
  Cursor cursor = cr.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, PROJECTION,
    null, null, ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME + " COLLATE NOCASE ASC");
  
  if (cursor != null) {
      try {
          int nameIndex = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME);
          String nameContact = cursor.getString(nameIndex);
      finally {
          cursor.close();
      }
  }
  </code></pre>
  
  <p><strong>Adapter</strong></p>
  
  <pre><code>holder.name.setText(itemListPogo.get(position).getItemName());
  </code></pre>
  
  <p>Can anyone please help to avoid the duplication in name.</p>