Shift-click to reverse sort order of table columns
Inverse shift+click sorting for custom queries

Add inverse sorting for custom queries
Keep the inverse order while shift+clicking after the first click
Merge pull request #1907
Add support for shift-clicking to reverse column sort order (patch by Miroslav Zoričák)