0

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);

Raghunandan
  • 132,755
  • 26
  • 225
  • 256
  • 1
    http://stackoverflow.com/questions/13814786/display-the-contacts-in-sorting-order-contactscontract-contacts-of-content-resol – Raghunandan Oct 24 '13 at 18:53

1 Answers1

0

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

user2003323
  • 1
  • 2
  • 2