Currently, it's impossible to change the sort type to use links or radios if don't expose both the sort field and the sort order. This is because of the following in exposed_form_alter():

if (isset($settings['sort']) && !empty($form['sort_by']) && !empty($form['sort_order'])) {

That's a problem for me as I don't wish to expose sort order, just sort field. It's also a bug because the interface doesn't tell you that it won't work.

Patch to follow...

#1 2050021-sort-order-1.patch2.92 KBAngry Dan
None View
Members fund testing for the Drupal project. Drupal Association Learn more


Angry Dan’s picture

Status: Active » Needs review
2.92 KB
None View

See attached patch.

mikeker’s picture

Status: Needs review » Needs work

Thank you for the patch, however it doesn't apply against the latest -dev.