Cursors cannot be sorted. You would have to read the data out of the
Cursor, sort it, and store the results somewhere (ArrayList of POJOs,
MatrixCursor, etc.).

On Wed, Dec 8, 2010 at 3:53 AM, Pink <[email protected]> wrote:
> Hi,
>
>
>   I have two different cursors, from two different ContentProviders ,
> to return.
>
>   I am using MergeCursor to merge the two cursors into one.
>
>   But i have to give the data in sorted manner.
>
>   How can i sort MergeCursor?
>
>   Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.0.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to