Project

General

Profile

Actions

Feature #40588

open

Ability to disable table sort

Added by Josiah Ulfers 8 months ago. Updated 11 days ago.

Status:
Resolved
Priority:
Normal
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I find the table sorting introduced by #1718 annoying because most of the tables I use are not usefully sortable and the sort as implemented can be a nuisance.

I would like an option to turn off the JavaScript sorting globally, that is, restore the behavior prior to #1718.

Globally might mean "per project." I use Redmine hosted on Planio and I'm not sure how the clients there are technically separated.


The specific problems are immaterial if there's an option to turn off table sorting, but I'll show the problems as motivation.

For example, I use tables like this:

First group Gizmos A
Second Widgets B
Third Widgets A
Gizmos B
Fourth Gadgets

Hovering table headers causes the sort arrow to appear briefly. That changes the dimensions of the cells and can cause a jarring blinking effect as the table columns resize.

It's hard to select part of the text in a table cell. If I click and drag over just the word "first" for example, when I let up the mouse button, it sorts instead of keeping my selection. I can work around this by moving the mouse outside the cell before letting up the button, but that's easily forgotten.

Once I've sorted the table one time, often by accident as above, no amount of clicking returns it to the original order. An example table on RedmineTextFormattingTextile suffers from this problem as well.

The example table from RedmineTextFormattingTextile also shows that apparently the same sorting choice can produce different orderings.

Sorted by User descending one ordering Sorted by User descending another ordering

That might be related to improper handling of row and column spans. With the simpler example here, a rowspan can rearrange cells into the wrong columns and associate them with the wrong headers.

Original Sorted
Original table Cells associated with wrong row headers

#1718#note-17 lists some other potential problems.


Wiki syntax to disable sort per table or per column would be an alternative. Such syntax might already exist since #1718 says I can "explicitly set the sort algorithm by adding one of the following classNames to the associated table header… sortable-keep (which keeps the row in it’s original order)." Forgive my ignorance, but I don't know how to add classNames in wiki syntax, RedmineTextFormattingTextile doesn't mention it.

For me, however, removing JavaScript sort or a global option to turn it off would be better that fine-grained wiki syntax.


Files

clipboard-202404181812-io99s.png (20.3 KB) clipboard-202404181812-io99s.png Original table Josiah Ulfers, 2024-04-19 00:12
clipboard-202404181812-vdkwz.png (21.3 KB) clipboard-202404181812-vdkwz.png Cells associated with wrong row headers Josiah Ulfers, 2024-04-19 00:12
clipboard-202404181831-c0ryh.png (56.3 KB) clipboard-202404181831-c0ryh.png Sorted by User descending one ordering Josiah Ulfers, 2024-04-19 00:31
clipboard-202404181833-tgair.png (54.9 KB) clipboard-202404181833-tgair.png Sorted by User descending another ordering Josiah Ulfers, 2024-04-19 00:33
0001-adds-setting-to-disable-JS-based-table-sort-in-wiki-.patch (3.79 KB) 0001-adds-setting-to-disable-JS-based-table-sort-in-wiki-.patch Jens Krämer, 2024-12-09 08:51

Related issues

Related to Redmine - Feature #1718: Table column sortingClosedGo MAEDA2008-07-30

Actions
Actions

Also available in: Atom PDF