Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$docus.search issue with sort and limit #451

Closed
farnabaz opened this issue Jun 17, 2021 — with Volta.net · 0 comments · Fixed by #453
Closed

$docus.search issue with sort and limit #451

farnabaz opened this issue Jun 17, 2021 — with Volta.net · 0 comments · Fixed by #453
Labels
bug Something isn't working

Comments

Copy link
Collaborator

When using sortBy and limit at the same time the result list is invalid and the result document does not have the expected order

      const documents = await $docus.search('/blog/', { deep: true }).sortBy('position', 'desc').limit(2).fetch()
@farnabaz farnabaz added the bug Something isn't working label Jun 17, 2021 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant