You would have to ask that question to whoever wrote the content
provider you are querying.

On Sat, Oct 9, 2010 at 12:30 PM, ohad srur <[email protected]> wrote:
> hello..
>
> why the sort order doesn't work ? it compiles ok
>
> DataBase.DATE - is long number in the db , it's not working also for
> integer and string
>
> String[] projection = {DataBase._ID,DataBase.ID2,DataBase.DESCRIPTION,
> DataBase.DATE,
>                                DataBase.TYPE_OF_PAYMENT,DataBase.SUM 
> ,DataBase.REAL_DATE ,
> DataBase.PERSON,
>
> DataBase.TYPE_OF_EXPENSE,DataBase.FIXED_PAYMENT,DataBase.FIXED_DAYS,DataBase.ISUPDATE};
>
>
>                        // Get the base URI for the People table in the 
> Contacts content
>                        // provider.
>                        Uri contacts = DataBase.CONTENT_URI;
>                        String sort = DataBase.DATE + " DESC";
>                        // Make the query.
>                        Cursor cur = managedQuery(contacts, projection, null, 
> null, sort);
>                        return cur;
>
> --
> 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