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

How can I Sort Query Result by latest to the olders #279

Open
simanga-dev opened this issue Oct 17, 2024 · 3 comments
Open

How can I Sort Query Result by latest to the olders #279

simanga-dev opened this issue Oct 17, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@simanga-dev
Copy link

image

How can I change the sort order of this query results?

@kristijanhusak kristijanhusak added the enhancement New feature or request label Oct 17, 2024
@kristijanhusak
Copy link
Owner

You can't at this moment, but this can be added as an improvement.

@simanga-dev
Copy link
Author

I would like to contribute, but this is my first time. I would appreciate guidance if you can provide it.

@kristijanhusak
Copy link
Owner

There is already some sorting logic around it here https://github.com/kristijanhusak/vim-dadbod-ui/blob/master/autoload/db_ui/drawer.vim#L726, so just introduce a configurable global variable like g:db_ui_dbout_list_sort, and read it's configuration in this sorting method.

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

No branches or pull requests

2 participants