Alphabetize contacts


#1

Is there a quick method available via expo for alphabetizing the contacts from Expo.Contacts.getContactsAsync? iOS contacts are coming back in a seemingly random order. I assume it’s either the order that iOS set them in, or in descending order from the first contact I input to the last. Any help or direction is much appreciated. Thank you.


#2

Hi-

Unfortunately, there is no good way to do this right now except load in all the contacts and then sort them in JS.

Here is a feature request you can vote on or comment on:
https://expo.canny.io/feature-requests/p/sorting-options-for-contacts

Charlie


#3

:+1:
thanks, Charlie


closed #4

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.