PDA

View Full Version : How do you order the contacts in an addressbook programatically?




gat89
Sep 26, 2008, 03:42 PM
Hi I am playing with the addressbook on the iphone and while I can read the contacts by doing someting like:

CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressBook);

is there a way to order that array by first name? Its driving me insane...