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

Plugins: Add sorting #313

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open

Plugins: Add sorting #313

wants to merge 2 commits into from

Conversation

dd32
Copy link
Member

@dd32 dd32 commented May 9, 2024

This is effectively a cutdown version of #202 but specific for sort with the new plugin directory theme.

This enables a sorting dropdown on archives & search.

ZERO effort has been put into styling and getting the dropdowns in the correct locations on either search or archives.

It's worth noting that custom sorting is already enabled for non-search archives, just not exposed with a dropdown, for example, tags/performance/?orderby=rating

Sorting for search is arguably useless, as when you sort you immediately loose relevancy order in the results, and you end up with the same top-20 plugins showing up in every search in the first few places.

This requires a change to Jetpack Search on WordPress.com to allow us to sort by some fields, D148116, notably this is required for the ratings, num_ratings, tested, and active_installs sorts. If you're an Automattician with a WordPress.com sandbox, you can test using the diff D148116 w/ JETPACK__SANDBOX_DOMAIN.

Trac: https://meta.trac.wordpress.org/ticket/2753

@dd32 dd32 requested a review from StevenDufresne May 9, 2024 04:23
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

Successfully merging this pull request may close these issues.

None yet

1 participant