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

Not Sorting #47

Open
kfrancis opened this issue Mar 18, 2024 · 3 comments
Open

Not Sorting #47

kfrancis opened this issue Mar 18, 2024 · 3 comments

Comments

@kfrancis
Copy link

v1.2.9

Simple data set

Not sorting

csvQuerySortIssue

@jokedst
Copy link
Owner

jokedst commented Mar 19, 2024

Well, it is sorting. As strings. The windows grid has no clue this column is actually numbers.
There is a workaround, if you enable "DetectDbColumnTypes" in the plugin settings, and sort using SQL ("SELECT * FROM THIS ORDER BY 2") then it works.

But that kinda goes against the whole "should just work" that is sort of the guideline of this plugin. Perhaps it's possible to tell the windows grid this is numbers? And DetectDbColumnTypes should perhaps be on by default.

@jokedst
Copy link
Owner

jokedst commented Mar 19, 2024

Nice animated gif by the way!

@kfrancis
Copy link
Author

Nice animated gif by the way!

https://www.screentogif.com/ - my fav for that.

Right, duh - sorry that makes total sense. That work around works as well, can confirm. I think it just looked like a bug because it appears that it should work but doesn't. Would be nice to have the order by appended when you click the column? Also, while the query works - clicking on the column doesn't ever work.

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