Use collapsible header to not show the query by default
Sort in the browser

This skips the roundtrip to the database and for long queries can save a
lot of time. It also brings up sorting ascending/descending which was
missed beforehand.

Closes #6