Default sort order not applied the first time header is clicked

Created on 29 August 2017, about 7 years ago
Updated 17 January 2024, 10 months ago

A follow-up to parent issue #2429213: Default sort order not applied

Problem/Motivation

Seems that an intuitive approach to re-ordering a table when a column header is clicked would be to apply first the default order set for the specific column, i.e. in case the default order is set to 'descending', clicking on its header should first sort it in descending order. Currently ordering applied in this manner always sorts the table in ascending order first.

Proposed resolution

Setting attribute 'orderSequence' to ['desc', 'asc'] for columns where the values of attribute options['info'][$field]['default_sort_order'] = 'desc', as done in the attached patch.

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇨🇦Canada dmachev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    Sorry that I missed this one! Thanks for all the hard work in here. @joelpittet is this sissue still relevant and useful for later versions? Should we tag it for a reroll?

Production build 0.71.5 2024