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

[Bug]: Date/datetime columns in table are sorted alphabetically as text, instead of as proper date/time #1460

Open
1 task done
martkaczmarek opened this issue Jan 23, 2025 · 0 comments
Assignees
Labels
Javascript Frontend Pull requests that update Javascript code

Comments

@martkaczmarek
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When sorting table columns with data of type datetime, sorting is done alphabetically on formatted, displayed text, instead of on the actual value:

Image

Image

Expected Behavior

Columns containing datetime or date type of data should be sorted with relevant function, not alphabetically as displayed text

Steps to reproduce

  1. Create a table with the following example data:
[
{date:"1999-01-28T15:52:23Z"},
{date:"2025-03-01T15:52:23Z"},
{date:"2040-05-23T15:52:23Z"}
]
  1. Make the date column type of datetime, and make it sortable and enter the following formatting: DD.MM.YYYY
  2. Sort the data ascending or descending - data is not sorted correctly

Environment

Docker compose multi-image, v2.5.2

Additional Information

No response

@adnanqaops adnanqaops added the Javascript Frontend Pull requests that update Javascript code label Jan 24, 2025
@adnanqaops adnanqaops moved this to 🆕 New in Lowcoder Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Javascript Frontend Pull requests that update Javascript code
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants