xDr_Johnx
xDr_Johnx

Reputation: 77

Parse.com array query order

Lets say that there is an array with 10 objects in it. Each object has a different array value. If I want to query all 10 objects from order from highest array value to lowest, what parse method do I use?

I have looked through the official documentation for a while and still can't find the answer.

Thanks :)

Upvotes: 1

Views: 573

Answers (1)

xDr_Johnx
xDr_Johnx

Reputation: 77

Thanks to @danh I now know how to do this. To perform a query based on the order of a value contained in each row, you use the method query.orderByAscending() or query.orderByDescending().

For detailed descriptions of these methods, you can find them here: https://parse.com/docs/android/api/com/parse/ParseQuery.html

Upvotes: 1

Related Questions