I am using Titanium to develop a mobile app. I have stuck in a problem, where i want to show contact list. I used the following code to show contact list
Titanium.Contacts.showContacts({ });
I am getting the contact list, but it shows in sorting order of last name . I want the list to be shown in sorting order of first name.
Any help will be appreciated
there is a property Ti.Contacts.CONTACTS_SORT_FIRST_NAME hope this helps. There is also CONTACTS_KIND_ORGANIZATION, and CONTACTS_KIND_PERSON.