wordpress.org
wordpress.org copied to clipboard
Plugins: Add sorting
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