openedx / openedx/paragon

DataTable sort toggles not properly sorting alphabetically

Open
#2,832 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
140
Forks
100
Avg merge
1h 3m
Merged PRs (30d)
30

Description

Bugs

When using the DataTable with sorting enabled the toggle do not sort alphabetically as expected. It sorts as follows

  1. Alphabetized capitalized words
  2. Alphabetized lowercase words
  3. String that start with numbers

Actual:
Screenshot 2023-11-20 at 11 40 51 AM

Expected:
Screenshot 2023-11-20 at 11 43 21 AM

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

No file or test is named. Locate the DataTable sorting entry point, reproduce the behavior with capitalized, lowercase, and numeric-leading strings, and verify that the resulting order matches the expected alphabetical ordering with regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.