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

Assigning a property of sortable: true and defaultSortDirection: ASC|DESC does not sort the table by default #211

Open
DJCecil2 opened this issue Mar 21, 2018 · 1 comment

Comments

@DJCecil2
Copy link

I'm attempting to sort a table by a value of "Last Modified" by default but it doesn't seem to work.

{
    dataIndex: 'updated_at',
    name: 'Last Updated',
    sortable: true,
    defaultSortDirection: 'ASC',
    renderer: ({ column, value }) => {
        return <DateTime key='much-unique' dateTime={value} />
    }
}

It places the sort icon (also not working, but probably a font issue), but it doesn't seem to be actually sorting anything (the default order still persists)

image

I can't find any documentation that states how to properly do this. What am I doing wrong?

@baloraki
Copy link

Hi,
has anyone found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants