Hi,
I struggled a lot to understand the sorting for rest api, and after some testing found that the date field type is not sorting.
Test condition,
i have a test collection with just one field Date of Fieldtype date,
and have these four dates, 2019-10-18, 2019-06-18, 2019-02-20, 2019-06-21
my request url
/api/collections/get/test1?sort[date]=-1&token=account-xxxx
But the response order is not sorted, below is the order i received
- 2019-10-18,
- 2019-06-18
- 2019-02-20
- 2019-06-21
Either the sort api is not working or there is some default sort, which am not able to figure out.
Although i did find that Text Fieldtype sorting works, can anybody help me here please?
3.