WordPress / wordpress.org

WordPress.org Meta, Git-ified. Synced from git://meta.git.wordpress.org/ This repository is just a mirror of the WordPress Meta subversion repository. Please include a link to a pre-existing ticket on https://meta.trac.wordpress.org/ with every pull request.
https://meta.trac.wordpress.org/
109 stars 140 forks source link

Plugins: Add sorting #313

Open dd32 opened 4 months ago

dd32 commented 4 months ago

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