How to sort objects retrieved by parse in descending order? (mod_parse)

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?

Hi Guys, I just figured this out:

To order ascending place a “-” symbol in front of the filed in to be ordered.

See below:

 local queryTable = { ["order"] = "-createdAt", ["where"] = { ["creator"] = "Reid" } } parse:getObjects( "rss", queryTable, onGetObjects )

Hi Guys, I just figured this out:

To order ascending place a “-” symbol in front of the filed in to be ordered.

See below:

 local queryTable = { ["order"] = "-createdAt", ["where"] = { ["creator"] = "Reid" } } parse:getObjects( "rss", queryTable, onGetObjects )