What's the easiest way to sort a ContentResolver query by custom order?
- by Pentium10
I am faceing a problem where I need to sort my ContentResolver in a custom order.
Take for example Contact Groups, you can define and manage them using Android's data database. But if you query this, you are limited to do order by on the name of the group only or id.
In my scenarion I need to sort them in an order (other than alphabetic) that I've stored in my database.
Take for example this example:
Colleagues
Excluded
Family
Friends
But the order I want them to display is:
Family
Colleagues
Friends
Excluded
So how would you accomplish this task?