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...

CommentFileSizeAuthor
#1 2050021-sort-order-1.patch2.92 KBAngry Dan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Angry Dan’s picture

Status: Active » Needs review
FileSize
2.92 KB

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.

Neslee Canil Pinto’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

Hi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Closing this as Closed(wont fix).