Andrew Clark
Posts: 0
Joined: Sun Jan 05, 2014 1:26 pm

Sorting photos in order they were taken to display on an image page.

Hi - I am sorry tis is a very basic question. I have been able to use camera to take photo and put image on rest db with comment. I have created a second page where I can view image and display comments associated with the photo.

What I am unable to do is effectively sort images. Or display subsequent images taken. That is I can only retrive first image taken.

The question is how can I dispay images and comments in the order they were taken. - I have checked documents and tutorials, however I am unable to find this informartion in a format that I readily understand. Thanks in advance.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Sorting photos in order they were taken to display on an image page.

Hi,

You can use sort request parameter when retrieving data from database. http://docs.appery.io/documentation/b...

Andrew Clark
Posts: 0
Joined: Sun Jan 05, 2014 1:26 pm

Sorting photos in order they were taken to display on an image page.

Hi Igor

Thanks for vry quick response. I was just looking at request parameter using sort. I just tried sort and -_createdAt so as to reverse order responses.

However when I tried test, it said was succesful but did not reverse order the responses. Did I miss something in documents.

Andrew

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Sorting photos in order they were taken to display on an image page.

Hello! Could you post screenshots from service settings and Test tab?

Return to “Issues”