nextcloud / nextcloud/tables

Toggle sort by clicking column heading

Open
#1,308 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage design enhancement
Dominant language
JavaScript
Stars
214
Forks
52
Avg merge
1d 10h
Merged PRs (30d)
82

Description

Describe the solution you'd like

Many tables in other applications can be sorted (A->Z or Z->A) simply by clicking the column heading.

Describe alternatives you've considered

We can currently sort by clicking the ... next to the column heading then selecting the sort option.

Additional context

Currently clicking on the column header does nothing, so it seems reasonable to allow a one-click sort. Clicking once would sort ascending and clicking again would change the sort to descending.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the table column-header handling and the existing sort action opened through the ... menu. Compare that behavior with the requested click interaction: the first click should sort ascending and the second descending. Done means column headings trigger sorting without opening the menu and the direction changes on successive clicks.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.