I have usersnames and their scores on parse. To populate the high scores tableview I need to get the objects in descending order. I managed to get the objects with the following code but they dont come sorted.
local queryTable = { ["where"] = { ["totalscores"] = { ["$gt"] = 0 }} } parse:getObjects( "Score", queryTable, onGetObjects )
I tried to do something like this looking here ( parse.com/docs/rest#queries ) but i get an error.
["order"]={ ["totalcredits"] = { ["$gt"] = 0 }}
How should my queryTable be to do this?