Page 1 of 1

Query with constraint and sort

Posted: Wed Jul 24, 2013 11:27 am
by jeremy Henry

Hi,
can you please elucidate how to query the database and sort using another value?
{"personName":"Judith"}, 'sort=-startDate'

the query with constraint is fine, however I struggle with the sort.
I want to retrieve a list of activities according to the name, and sort them per starting date.
I looked at documentation and also the forum, but couldn't find. in a post, you also refer to http://help.tiggzi.com/documentation/...
but this page does not exist anymore.

thank you,


Query with constraint and sort

Posted: Wed Jul 24, 2013 11:49 am
by Kateryna Grynko

Hi Jeremy,

For request add parameter "sort" (not a header!). Parametr value is a name of the field you want to sort by: http://docs.appery.io/documentation/b...


Query with constraint and sort

Posted: Wed Jul 24, 2013 5:27 pm
by jeremy Henry

Nice and thanks! works perfectly