Open AbhiBhattacharyya opened 8 months ago
Descending sort is not working
Tried with below URL with example schema in readme.
http://[localhost:3000/posts?_sort=id&_order=desc](http://localhost:3000/posts?_sort=id&_order=desc) Also
http://[localhost:3000/posts?_sort=id&_order=desc](http://localhost:3000/posts?_sort=id&_order=DESC)
Thanks Abhishek
Hi @AbhiBhattacharyya
Sort works differently in v1 https://github.com/typicode/json-server?tab=readme-ov-file#sort
So, how is it solved ?
Descending sort is not working
Tried with below URL with example schema in readme.
http://[localhost:3000/posts?_sort=id&_order=desc](http://localhost:3000/posts?_sort=id&_order=desc) Also
http://[localhost:3000/posts?_sort=id&_order=desc](http://localhost:3000/posts?_sort=id&_order=DESC)
Thanks Abhishek