Reputation: 77
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
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