android - Sort ParseQuery by boolean field -


i want sort query first if field true or false, , updatedat. how achieve on android parse sdk?

my current code is:

mquery.orderbydescending("draft"); mquery.addascendingorder("updatedat"); 

but java.lang.illegalargumentexception: unable sort key draft.

try using

    mquery.whereequalto("true","draft"); 

instead of orderbydescending.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -