Priority/Severity:
Medium
Platform
Operating System
- Windows 11
- macOS Sonoma
Browser
- Google Chrome 119.0.6045.124
- Safari 17.1 (19616.2.9.11.7)
Discourse
38e53b5e8eab64225879a1b855bc50242f2791e5
Description:
The user can choose to sort lists of topics by:
- Number of replies
- Number of views
- Timestamp of latest activity
The criterion by which to sort is selected by clicking the associated column heading.
The sort order is toggled between ascending and descending by subsequent clicks on the column. A ˄ symbol suffix on the heading indicates ascending sort order and a ˅ symbol indicates descending sort order.
On the first click on the column, the ascending symbol appears even though the list is sorted in descending order.
On the second click on the column, the sort order does not toggle.
Reproducible steps:
- Open any topic list:
https://try.discourse.org/ - Click the “Views” column heading.
The ˄ ascending symbol appears next to the column heading even though the list is sorted in descending order. - Click the “Views” column heading.
The sort order of the column remains descending instead of switching to ascending as expected.
The sort order symbol changes to ˅, matching the current sort order. - Click the “Views” column heading.
The sort order toggles from descending to ascending.
The sort order symbol changes to ˄, matching the new sort order. - Click the “Views” column heading.
The sort order toggles from ascending to descending.
The sort order symbol changes to ˅, matching the new sort order.
Additional context
I notice that the ˅ symbol is shown momentarily after the column is selected, before changing to ˄:
I am able to reproduce the fault on try.discourse.org in “safe mode”.
Originally reported at Issue with sorting new posts by number of replies - Website and Forum - Arduino Forum