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

Feature Request: sort results by date #2152

Closed
nathan-at-least opened this issue Jun 15, 2023 · 3 comments · Fixed by #2297
Closed

Feature Request: sort results by date #2152

nathan-at-least opened this issue Jun 15, 2023 · 3 comments · Fixed by #2297
Labels
A-crate-search Area: A problem or feature request for searching crates A-frontend Area: Web frontend E-easy Effort: Should be easy to implement and would make a good first PR

Comments

@nathan-at-least
Copy link

Typically when searching for crates, I tend to avoid those which haven't been updated in a while. I basically scan, by eye, for only "2023" updated crates.

It would simplify my searches if I could sort by my-to-least recently updated.

BTW- this recency is just the easiest approximation available on https://docs.rs for "maintenance reliability". For example, a crate which hasn't been updated in a year might be a really mature solid simple crate that's widely relied on. In that case, I'd consider using it, but that's hard to see from the search results.

I filed a more sophisticated request for search predicates in #2151. I would guess adding results sorting may be simpler and gives me 70% of the value I'd get from that more sophisticated feature.

@syphar
Copy link
Member

syphar commented Jun 16, 2023

Docs.rs is internally using just the crates.io search API.

So while we would duplicate a part of the crates.io interface/logic, I would be fine with a PR that adds the sorting-dropdown from the crates.io search to our search results.

Similar to adding columns to the result where we already get the information from the crates.io API.

grafik

@syphar syphar added A-frontend Area: Web frontend S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work. A-crate-search Area: A problem or feature request for searching crates labels Aug 2, 2023
@syphar syphar added E-easy Effort: Should be easy to implement and would make a good first PR and removed S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work. labels Oct 24, 2023
@linyihai
Copy link
Contributor

linyihai commented Oct 28, 2023

May be need some time, I will take a look on this.

@syphar
Copy link
Member

syphar commented Oct 28, 2023

Thank you, awesome!

Feel free to ask any questions here on the issue, or on zulip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-crate-search Area: A problem or feature request for searching crates A-frontend Area: Web frontend E-easy Effort: Should be easy to implement and would make a good first PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants