icflorescu / icflorescu/mantine-datatable

[Feature Request] Add Unsort for Sortable Feature

Open
#812 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

Add unsort for sortable feature, like after the 3rd click in column header, the sortStatus will become undefined to unsort the data table.

Example:

1st click in column header:

  • sortStatus: columnAccessor = name
  • sortStatus: direction = asc

2nd click in column header:

  • sortStatus: columnAccessor = name
  • sortStatus: direction = desc

3rd click in column header:

  • sortStatus: undefined (to unsort the data table)

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 sortable feature and the code that updates sortStatus when a column header is clicked. Trace the existing ascending and descending transitions, then verify that a third click clears sortStatus and leaves the data unsorted. Check the related sorting tests, if present, and add coverage for the three-click sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.