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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -