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

how to get sort data? #169

Closed
bilalswiftsolutions opened this issue Jun 17, 2023 · 1 comment
Closed

how to get sort data? #169

bilalswiftsolutions opened this issue Jun 17, 2023 · 1 comment

Comments

@bilalswiftsolutions
Copy link

bilalswiftsolutions commented Jun 17, 2023

I try using sort , but didn't work do i need to do something different?

try {
  const result = await pouchdb.rel.find('staff', { limit: 20, sort: [{ name: 'desc' }] });

} catch (err) {
  console.log(err);
}
@broerse
Copy link
Collaborator

broerse commented Jun 17, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants