Expected results
Table chart should allow sort by without metrics.
Actual results
Table chart is not able to handle sort by without metrics.
Screenshots

How to reproduce the bug
- Go create a new Table viz
- Add a Group by column
- Add a sort by metric
- Run the query
Environment
Latest master and an example dataset on Postgres.
Additional context
Could be related to #13426 #13423 and #13228