Combine REST API where and sort ?
I have been playing, to see how I can filter a REST query and then sort it by date. The latest date first.
code
url: 'https://api.appery.io/rest/1/db/collections/questions/',
dataType: 'json',
data: {
where: '{"sid":'+sid+'}',
sort: '{_createdAt}'
},
/code
I have tried different combinations, but none seem to sort the data, but i do not get an error either ?