Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid sorting for Strings should be case IN-sensitive (or at least easily configurable) #6980

Open
finaris-cs opened this issue Dec 20, 2024 · 1 comment
Labels
enhancement New feature or request requires new major This would be a breaking change vaadin-grid

Comments

@finaris-cs
Copy link

Describe your motivation

Currently, when adding a column containing a string value and using column.setSortable(true), the grid will sort case sensitive.
For our application, we prefer case insensitive sorting.

So now my only (to me known) option is to use the setComparator() method for all string columns - we have many grids, so this is not a good solution.

Describe the solution you'd like

A central option for the standard grid sorting behavior would be nice, or even a new default that uses case insensitive sorting.
A property on the grid would also help (Grid.setCaseInsesitiveSorting(boolean ...))

Describe alternatives you've considered

see above

Additional context

No response

@yuriy-fix yuriy-fix added vaadin-grid requires new major This would be a breaking change enhancement New feature or request and removed requires new major This would be a breaking change labels Jan 9, 2025
@yuriy-fix
Copy link
Contributor

We could consider introducing an overload for setSortable and also switch the default in the upcoming major.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request requires new major This would be a breaking change vaadin-grid
Projects
None yet
Development

No branches or pull requests

2 participants