question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SHOW TABLES should list results alphabetically by default

See original GitHub issue

In the current version, SHOW TABLES does not return the result in a sorted manner. Adding ORDER BY tableName does not help. Most DBs sort the output of SHOW TABLES alphabetically by default, I think it would make sense if we did the same.

Note: This is not a UI-only change regarding results in the Web Console, but requires changes in how the SQL is executed in the backend.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Belair34commented, Sep 19, 2022

I was testing this and it seems like the feature has been implemented in the current master branch (6.5.3), however it was not implemented in whatever version the live demo on the website is using. It’s notable that in the table preview in the top left the tables are listed alphabetically in two groups: those that start with capitals and those that start with lowercase, however SHOW TABLES works as expected. It definitely doesn’t seem coincidental given that I was able to reproduce it a lot. image

0reactions
puzpuzpuzcommented, Sep 17, 2022

@stephenspol I don’t think this one is resolved. Could be a coincidence that you’re getting records in-order.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Order Alphabetically in SQL | LearnSQL.com
You want to display records from a table in alphabetical or reverse-alphabetical order according to given column. Example: Our database has a table...
Read more >
sorting - MySQL display results alphabetical order but show a ...
I have a list in MySQL that is sorted in alphabetical order as follows. ... Since the magority of my customers are from...
Read more >
Sort data in a range or table - Microsoft Support
How to sort and organize your Excel data numerically, alphabetically, by priority or format, by date and time, and more.
Read more >
How to Alphabetically Sort Records in MS Database Tables ...
This Microsoft Access tutorial shows you how to sort records within an Access table. Alphabetical ordering, A to Z and Z to A,...
Read more >
Controlling the sort sequence used to display lists
All lists have a default sort sequence based on the type of fields present in the list.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found