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 do I do sort on the relational data #66

Closed
windmaomao opened this issue Nov 25, 2016 · 1 comment
Closed

How do I do sort on the relational data #66

windmaomao opened this issue Nov 25, 2016 · 1 comment

Comments

@windmaomao
Copy link

Just curious what is the best way to support sorting ? ex. I have multiple comments on a blog, but when I find this blog, I'd like comments to be sorted by timestamp, how do I do this ? Thanks.

@nolanlawson
Copy link
Member

You would have to sort in-memory because relational-pouch itself offers no way to do this. Also even if it did, it would just do it in-memory anyway so there's no benefit relative to doing the sorting yourself in JavaScript code. Hope that helps!

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