-1

I am using this package to get contacts in react native. but this package returns array of numbers in this format

[{
  "postalAddresses": [],
  "thumbnailPath": "",
  "phoneNumbers": [{
    "label": "mobile",
    "id": "1",
    "number": "(556) 840-648"
  }],
  "hasThumbnail": false,
  "company": "",
  "jobTitle": "",
  "givenName": "A",
  "familyName": "D",
  "department": "",
  "note": "",
  "recordID": "1",
  "emailAddresses": [],
  "imAddresses": [],
  "displayName": "A D",
  "rawContactId": "1",
  "prefix": null,
  "urlAddresses": [],
  "middleName": "",
  "suffix": null
}, ]

How to sort all contacts in asc order according to displayName in less time as contacts can be a lot

Barmar
  • 669,327
  • 51
  • 454
  • 560

0 Answers0