vaadin / vaadin/framework

Feature request: Capability to set initial sort direction for Grid column

Open
#12,217 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

It would be useful to be able to customize the initial sort direction for a grid column.

Now - as far as I know - when user clicks on the grid header column, data is always sorted initially ascending. If the grid is representing for example monetary data a typical use scenario for sorting is to see the biggest numbers on the top of the list. This would require a descending initial sort direction for the column.

Cheers!

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

The issue names no files, tests, or entry points. Start by locating the Grid column header sorting behavior in the Java framework, then determine how a column could expose an initial sort direction; done means a column can select descending as its first sort direction and the behavior is covered by an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
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.