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

Add "sort by" features to the search #11

Open
edderiofer opened this issue Mar 19, 2020 · 1 comment
Open

Add "sort by" features to the search #11

edderiofer opened this issue Mar 19, 2020 · 1 comment

Comments

@edderiofer
Copy link

Add options to sort by puzzle size, by # of faves, by # of solves, etc.

@robx
Copy link
Owner

robx commented Mar 19, 2020

I see how these would be useful, but am unsure I want to add them for a couple of reasons:

  1. robust result paging is tricky, and the solution that I've implemented for current timestamp-based ordering uses a dedicated key; generalizing this to different sort orders would be at least a bit of work, and I expect it would run into some more serious difficulties I'm not aware of at this moment
  2. it's much harder to remove the feature again once it's been out there, if it turns out to be too expensive; particularly, this is a reason not to offer a naive implementation of ordering on such fields at this point

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