Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contacts are returned in random order #5

Closed
fedotxxl opened this issue Apr 18, 2020 · 2 comments
Closed

Contacts are returned in random order #5

fedotxxl opened this issue Apr 18, 2020 · 2 comments

Comments

@fedotxxl
Copy link

fedotxxl commented Apr 18, 2020

Hello. I tried to use ordering but it returns contacts with some unpredictable order for me. Finally, I changed in ContentResolver.queryContacts query to

return query(ContactsContract.Data.CONTENT_URI, projections, selection, selectionArgs, "upper("+ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME + ") ASC")

copied from https://stackoverflow.com/a/24489525/716027
I think ordering by display name is the most common case. Can you add it?

@ericmartineau
Copy link
Contributor

Sorry for the terribly late response, but can you provide more info about what you were seeing that prompted the change?

@ericmartineau
Copy link
Contributor

ericmartineau commented Aug 4, 2020

I believe this is fixed. 0.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants