Skip to content

[EuiDataGrid] Sorting on datetime schema does not work #4034

Open

Description

Sorting on columns whose schema type is datetime does not work. It instead sorts the (string) value inside that column alphabetically ascending or descending.

Steps to reproduce: Go to https://elastic.github.io/eui/#/tabular-content/data-grid-schema-columns#schemas and try to sort by the datetime field in the column and see how the rows are not ordered by date, but instead by the alphabetical order of the week name in the front:

screenshot-20200912-183303

Current workaround:
You need to register a custom schema detector with a fixed comparator function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions