Android: Sorting a merged cursor

Posted by tonyc on Stack Overflow See other posts from Stack Overflow or by tonyc
Published on 2010-07-30T16:58:20Z Indexed on 2011/01/15 0:54 UTC
Read the original article Hit count: 162

Filed under:
|
|
|

Hi,

I'm wondering if there's any way to merge two cursors together and then resort them.

I can easily merge two cursors together by using a MergedCursor, but that doesn't sort them.

I have two sets of contacts in two separate cursors (with totally different schemas) and I want to merge them and sort them by name (the name column is different in the two cursors).

Is this possible?

Thanks,

Tony

© Stack Overflow or respective owner

Related posts about android

Related posts about sorting