If you expose sort criteria but don't expose sort order (i.e by selecting Allow people to choose the sort order in the exposed form options) the option to Display exposed sort options as links or radio buttons does not work. It should be possible to format the display of sort criteria (sort by) when the sort order (ascending or descending) is not exposed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Peacog created an issue. See original summary.

Peacog’s picture

Status: Active » Needs review
FileSize
3.07 KB

Here's a patch that fixes the problem.

  • mikeker committed 56a347f on 8.x-3.x
    Issue #2870361 by mikeker: Display exposed sort options as links or...
  • mikeker committed 906d2c2 on 8.x-3.x authored by Peacog
    Issue #2870361 by Peacog: Display exposed sort options as links or radio...
mikeker’s picture

Status: Needs review » Fixed

@Peacog, thank you for the bug report and patch! I committed your patch and added a second commit to disable the combined sort option unless the sort order is exposed. Hopefully that will prevent some confusion.

Peacog’s picture

Yes, the whole sort order vs sort criteria thing can be confusing. Disabling the combined sort definitely helps. Thanks for committing!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.