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

present saved queries in name order #9

Open
trubens71 opened this issue Jul 6, 2023 · 0 comments
Open

present saved queries in name order #9

trubens71 opened this issue Jul 6, 2023 · 0 comments

Comments

@trubens71
Copy link

Simon, thanks so much for your work on datasette. I'd like to request a minor update to present the saved queries in name order (I assume currently they are in order of insert to sqlite). I plan to create a lot of saved queries for non-technical colleagues to use and want to arrange them in an accessible way.

The fix appears to be as simple as updating the sql to read select name, sql from saved_queries order by name at this line:

for row in await db.execute("select name, sql from saved_queries")

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

1 participant