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

Column sorting doesn't occur on first click after initial render of the grid #9

Open
McWatt opened this issue Feb 1, 2013 · 2 comments

Comments

@McWatt
Copy link

McWatt commented Feb 1, 2013

http://jsfiddle.net/McWatt/vYZQu/3/

Click on the second column header (not the first as this fiddle also demonstrates issue #7).

Notice that the first click does nothing, but on the second and subsequent clicks, the grid sorts as expected.

@mmurph211
Copy link
Owner

It looks like it's sorting correctly since the initial sort for column 2 is already in ascending order. If I reverse that it works as expected: http://jsfiddle.net/vYZQu/4/

@McWatt
Copy link
Author

McWatt commented Feb 4, 2013

On grids with lots of data, this would be more of an edge case, but on smaller grids this would occur more frequently. Would it be possible to detect if the order was already sorted and do the opposite?

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