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

Sort last table result #6

Open
ewaters opened this issue May 9, 2012 · 0 comments
Open

Sort last table result #6

ewaters opened this issue May 9, 2012 · 0 comments

Comments

@ewaters
Copy link
Owner

ewaters commented May 9, 2012

Similar to issue #1, it'd be nice to take the table result and sort it according to a different column.

Perhaps something like this:

altsql> select country, count(id) from people group by country;
altsql> .sort country asc;

The count(*) and group by was an expensive operation. You don't want to have to execute it again just to change the sort order, but you'd like to see the data resorted on a different column. If you wanted it resorted according to the second column, you could use positional selector:

altsql> .sort column 2 desc;

This would result in the data being re-rendered but according to the new sort order.

Optionally support multisort declarations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant