Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number & Date Columns doesn't sort correctly if "caseinsensitivestring" used (now sort as case insensitive STRINGS). #845

Open
dbareis opened this issue May 17, 2024 · 0 comments
Labels

Comments

@dbareis
Copy link

dbareis commented May 17, 2024

A clear and concise description of what the bug is.

"string" columns are by default not case sensitive. On a table containing string, number and date columns (all sorting correctly, except case sensitive on the string column), add "caseinsensitivestring" to the sort extension (as demonstrated ONLY in a response to an issue raised in github, no example exists).

The string column now sorts as insensitive, but the number and date columns fail sorting and look like they are now sorted as case insensitive strings.

Reproduction steps:
Steps to reproduce the behavior:

  1. Start with: extensions: [{ name: 'sort' }],
  2. All columns work
  3. Change num: 1 to: extensions: [{ name: 'sort', types: ['caseinsensitivestring'] }])
  4. Only string columns work (case INsensitively)

Expected behavior
Date & Number sorting to remain unchanged.

Observed behavior:
Date & Number sorting appears to become sorted as case INsensitive STRINGS!

TableFilter version: 0.7.3
Browser and version: Chrome x64: Version 124.0.6367.202 (Official Build) (64-bit)
OS and version: Windows 11 [Version 10.0.22631.3593]

Additional information/context:

  • Problem started happening recently, didn't happen in an older version of TableFilter: UNKNOWN
  • Problem can be reliably reproduced, doesn't happen randomly: Yes
@dbareis dbareis added the bug label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant