Ken H wrote:
> Will a cursor be ordered the same way as the query that loaded it up?
> For example, if I query a table, and the result set is ordered by date
> (oldest date first), will the first record in the cursor be the oldest
> date as well?

That depends on the implementation of the Cursor.

In the case of a SQLiteCursor, yes, the results will be in the order you
requested them via the ORDER BY clause.

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

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~---------~--~----~------------~-------~--~----~
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