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

Pivot Grid - Sorting dates in Long Date format is alphabetical, not numerical/date #1326

Open
edhans opened this issue Jun 19, 2024 · 2 comments
Assignees
Labels
issue: bug Confirmed as a bug in TE3

Comments

@edhans
Copy link

edhans commented Jun 19, 2024

Description

We have our Date formatted as Long Date in the date table. The Pivot Grid is sorting it alphabetically.
image

You can see that May is coming after July here.

Once we change it back to a normal date format without words in it, like dd/mm/yyyy, it sorts properly.

image

This might be related to some degree to #1318 in the sorting code.

Tabular Editor 3 Version

3.16.2

Screenshots

No response

Steps to Reproduce

No response

Expected behavior

I would expect it to sort in the underlying date order regardless of the date format, even if it is a date format with words in the display.

Crash Report

No response

Windows Version

11

@edhans edhans added the template: issue Issue report created by user, needs to be triaged label Jun 19, 2024
@edhans edhans changed the title Sorting dates in Long Date format is alphabetical, not numerical/date Pivot Grid - Sorting dates in Long Date format is alphabetical, not numerical/date Jun 19, 2024
@mlonsk mlonsk added issue: under review Being looked into by TE team and removed template: issue Issue report created by user, needs to be triaged labels Jun 26, 2024
@mlonsk mlonsk self-assigned this Jun 26, 2024
@mlonsk
Copy link
Collaborator

mlonsk commented Jun 26, 2024

Hi Ed
Thanks for reporting this, we are looking into it

@mlonsk
Copy link
Collaborator

mlonsk commented Jun 26, 2024

Hi @edhans
We have identified the bug and will get it fixed in a future update.

The alphabetical sort happens regardless of the Format of your dates—it is the ascending/descending sort order that triggers it.
The issue also exists on integers which are also sorted "Alphabetically".

Here are few pictures confirming the issue:

The short date format is sorted alphabetically:
image

Long date without explicit sort looks correct:
image

Explicit sort on long date:
image

Integers also sort alphabetically.
image

@mlonsk mlonsk added issue: bug Confirmed as a bug in TE3 and removed issue: under review Being looked into by TE team labels Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Confirmed as a bug in TE3
Development

No branches or pull requests

2 participants