openedx / paragon

💎 An accessible, theme-ready design system built for learning applications and Open edX.
https://paragon-openedx.netlify.app
Apache License 2.0
121 stars 66 forks source link

DataTable sort toggles not properly sorting alphabetically #2832

Open KristinAoki opened 11 months ago

KristinAoki commented 11 months ago

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

DmytroAlipov commented 7 months ago

Bug in ORA Grading MFE

I would like to add that I encountered a similar issue only in another MFE - ORA Grading MFE


A similar sort that is case-sensitive:

sort_1

Since the sorting is by username, I think there is a point in transferring it to a single register before performing the sorting. You cannot create 2 users with the same usernames “my_nickname” and “MY_NICKNAME”.


I would also like to add that incorrect sorting is carried out for the Grade field. I don’t understand at all the principle by which sorting is carried out here:

sort_2