Non-exposed and exposed sorts cause issues with the default sort order

Created on 19 March 2020, almost 5 years ago
Updated 16 September 2024, 3 months ago

Problem/Motivation

So the issue started when I added a non-exposed sort as the first sort out of three. The other two sorts are exposed, which looks something like this:

  1. Enabled: boolean ASC (un-exposed)
  2. Issue Date: date DESC (exposed)
  3. Title: text ASC (exposed)

The issue is that the default expose_sort_order for exposed forms is taken from the first sort option, which in this case is 'Enabled' and is ASC. The default expose_sort_order, however, should surely be for the first exposed sort option, which in this case is 'Issue Date' DESC.

This is resulting in the default sort order for exposed sorts not being respected. This seems to be mainly an issue in conjunction with Better Exposed Forms which is using the default sort order to rewrite the combined sort options field.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Views 

Last updated about 7 hours ago

Created by

🇬🇧United Kingdom kalpaitch

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024