jeremy Henry
Posts: 0
Joined: Fri Jul 19, 2013 1:48 pm

Query with constraint and sort

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,

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Query with constraint and sort

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...

jeremy Henry
Posts: 0
Joined: Fri Jul 19, 2013 1:48 pm

Query with constraint and sort

Nice and thanks! works perfectly

Return to “Issues”