openui / openui/open-ui

Native ability to sort a <table>

Open
#800 16 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage WHATWG
Dominant language
MDX
Stars
4.5k
Forks
226
Avg merge
2d 22h
Merged PRs (30d)
4

Description

Sorting a table is common functionality added to a table via JavaScript. It would be helpful to have this functionality natively added to tables.

Related material:

Possible solution: add an attribute to a of sortable="true" with a ::marker of up/down (like ) for un-sorted, ▼ for descending, and ▲ for ascending.

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 with the proposed sortable="true" attribute on and review the linked WAI-ARIA sortable-table example and related material. Done would require an agreed native table-sorting behavior, including unsorted, ascending, and descending states and their markers.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.