Closed dradux closed 2 years ago
I've toyed around for a while, but this isn't a problem in aiocouch. It's a bit hidden, but the CouchDB documentation states that you need to have an index on the fields you're trying to sort (and in that particular order). 95eca75368c63e7e8a95a84d29200d2a00b2fe7e adds support to create indexes and a test case for find with sorting. It seems to work that way.
Thanks for the quick response and work. I've verified that creating an index on the sort column does fix the issue. I can submit a PR to add a note to the docs for this if you like?
When I specify a sort with any values defined I get the following error:
I'm calling this with as:
If I set
sort=[]
I do not get an error but I also get no sorting.