Skip to content

[Feature Request] VDataTable - ability to prepend into sort-by when using multi-sort #22132

@J-Sek

Description

@J-Sek

Problem to solve

Currently, multi-sort always appends new columns to the sort-by array, so the last column has the lowest priority. It works fine until the table has initial sorting defined when the page loads and user would like sort by something not realizing that he/she has to undo sorting for all the sorted columns.

While the best UX requires some external sorting menu/dropdown with a drag&drop, some developers might want to keep it simple and just prioritize the sorting of the last-clicked column.

Proposed solution

  • multi-sort-order: 'prepend' | 'append'
  • (nice to have) detecting a modifier key (Shift or Alt ?) to flip the sorting order
    • multi-sort-order-modifier: 'shift' | 'alt'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions