what are the keywords for sortting the query and how to use it
Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
what are the keywords for sortting the query and how to use it
Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
Simply use ASC or DSC as last parameter to getContentResolver().query(......); It will sort the fetch data accordingly. You can also use orderBy and other sorting methods same as in SQL