Sort rows by posted.
Hey Guys,
I have a system posting into a database but I want to be able to pull rows from the DB in a different order, like by date/time.
Basically to use the data organised from newest to oldest.
Any ideas?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hey Guys,
I have a system posting into a database but I want to be able to pull rows from the DB in a different order, like by date/time.
Basically to use the data organised from newest to oldest.
Any ideas?
Hi Dan,
To sort rows you would need to add request parameter "sort". As a value use the name of the column you want to sort by.
This should be helpful: http://docs.appery.io/documentation/b...
Hi Katya,
I've added the request paramater "sort" and the value as "_createdAt" but it makes no changes to the result.
Please check the data output on the collection management page. For the output of the list from newest to oldest you don't need "minus" before the column nameThat is, sort: "_createdAt".